forked from: Automatically Cleaning up Closures

