Unhook modules before hooking them again.