Automatic GC for leaking applications