Clean up task manager.