Avoid crash during shutdown after failed initialization of PluginManager