PluginMgr: fixed bug on class loader close