fix multiprocessing pool garbage collection