public void stop(BundleContext context) throws Exception {
public void stop(BundleContext contxt) throws Exception {
	public void stop(BundleContext context) throws Exception {		context.removeFrameworkListener(this);		if (running) {			Thread t = thread;			running = false; /* request thread to stop */			if (t != null) {				t.interrupt();				synchronized (t) {					while (t.isAlive()) /* wait for thread to complete */					{						try {							t.wait(0);						} catch (InterruptedException e) {						}					}				}			}		}		if (drivers != null) {			drivers.close();			drivers = null;		}		if (devices != null) {			devices.close();			devices = null;		}		if (locators != null) {			locators.close();			locators = null;		}		if (selectors != null) {			selectors.close();			selectors = null;		}		if (log != null) {			log.close();			log = null;		}		this.context = null;	}