Ensure hooks are cleaned up when the user returns to the dashboard or unloads the module via a module loader.