Fix GC in long running program