Clean up hooks.