Clean up TimeoutTasks content when cancelling, close #682