tidy up the end of the all_tasks list after forking