Cleanup "process_tasks"