code: public void stop(BundleContext bc) throws Exception {
  		if (httpService != null) {
  			bc.ungetService(httpServiceRef);
  			httpServiceRef = null;
  			httpService = null;
  		}
  	}
docs: Called whenever the OSGi framework stops our bundle