Debugging memory leak in worker