Delete PluginManager reference and method in Plugin