@Override public void stop(BundleContext context) throws Exception { plugin = null; if (connectionsRegistryListener != null) { ConnectionsRegistrySingleton.getInstance().removeListener(connectionsRegistryListener); connectionsRegistryListener = null; } super.stop(context); }