code: public void stop(BundleContext context) throws Exception {
          this.log(context, LogService.LOG_INFO, "Stopping the " + this.getClass().getName() + " ClassService bundle");
          // I'm unregistered automatically
  
          bundleContext = null;
      }
docs: Bundle shutting down.