uninstall_hook now only does something if the hook has been installed