Call `plugin_unloaded` before reload.