Free all tasks on exit, not just those on the task_free_list