make sure master will do `plugin_unload()` when unload_plugins