Correctly shutdown tasks on reload/disable