Force garbage collection just after a worker is done.