Called when the OSGi framework stops our bundle
507305
public void stop(BundleContext bc) throws Exception {
		if (webContainerRef != null) {
			bc.ungetService(webContainerRef);
			webContainerRef = null;
		}
	}
402322
def halted(self):
        
        result = int(self._dll.JLINKARM_IsHalted())
        if result < 0:
            raise errors.JLinkException(result)

        return (result > 0)
1044297
function () {
		var start = Date.now();
		gutil.log('Building APP bundle');
		appBundler.bundle()
			.on('error', gutil.log)
			.pipe(source('main.js'))
			.pipe(gulpif(!isDevelopment, streamify(uglify())))
			.pipe(gulp.dest(configs.folders[options.environment]))
			.pipe(notify(function () {
				gutil.log('APP bundle built in ' + (Date.now() - start) + 'ms');
			}))
			.pipe(connect.reload());
	}
868785
@FFDCIgnore({ InvalidBundleContextException.class, LaunchException.class })
    protected void innerLaunchFramework(boolean isClient) {
        try {
            // Register services
            registerInstrumentationService(systemBundleCtx);
            registerLibertyProcessService(systemBundleCtx, config);
            preRegisterMBeanServerPipelineService(systemBundleCtx);
            openThreadIdentityTracker(systemBundleCtx);
            registerPauseableComponentController(systemBundleCtx);

            // Initialize the repo registry: we can use caches AND logging for messages
            BundleRepositoryRegistry.initializeDefaults(config.getProcessName(), true, isClient);

            Provisioner provisioner = new ProvisionerImpl();
            provisioner.initialProvisioning(systemBundleCtx, config);

            // All of our kernel provisioning activities are complete!
            config.getKernelResolver().dispose();
        } catch (LaunchException le) {
            // this is one of ours, no need to wrap again, just rethrow
            throw le;
        } catch (InvalidBundleContextException e) {
            // no-op: the framework was shutdown while bundles were being
            // installed -- things should stop gracefully w/ no ugly error
            // messages.
        }
    }
375109
@Override
    public void bundleChanged(BundleEvent event) {
        switch (event.getType()) {
            case BundleEvent.INSTALLED:
                processBundle(event.getBundle());
                break;
            case BundleEvent.UNINSTALLED:
                // TODO: remove entries?  how do i know if this bundle's entries have been overridden by another bundle?
                break;
        }
    }
863475
@Override
    public void stop(BundleContext context) throws Exception {
        app.fire(new Stop(), Channel.BROADCAST);
        Components.awaitExhaustion();
    }
1081549
public void stop() {
        if (this.active) {
            this.mongodProcess.stop();
            this.active = false;

            LOG.info("Successfully stopped EmbeddedMongoDB @ {}:{}", this.host, this.port);
        }
    }
1007663
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;
    }
373757
public void stop(BundleContext context) throws Exception {
        ClassServiceUtility.log(context, LogService.LOG_INFO, "Stopping " + this.getClass().getName() + " Bundle");
    	if (this.shutdownService(service, context))
    		service = null;
        // Unregisters automatically
        this.context = null;
    }
95608
def connectionLost(self, reason):
        """"""
        self.factory.loader.db.session.commit()
        if reactor.running:
            reactor.stop()
174044
public void register(Bundler bundler) {
    if (bundler == null) throw new NullPointerException("Cannot register null bundler.");

    if (runner.state == BundleServiceRunner.State.SAVING) {
      throw new IllegalStateException("Cannot register during onSave");
    }

    if (bundlers.add(bundler)) bundler.onEnterScope(scope);
    String mortarBundleKey = bundler.getMortarBundleKey();
    if (mortarBundleKey == null || mortarBundleKey.trim().equals("")) {
      throw new IllegalArgumentException(format("%s has null or empty bundle key", bundler));
    }

    switch (runner.state) {
      case IDLE:
        toBeLoaded.add(bundler);
        runner.servicesToBeLoaded.add(this);
        runner.finishLoading();
        break;
      case LOADING:
        if (!toBeLoaded.contains(bundler)) {
          toBeLoaded.add(bundler);
          runner.servicesToBeLoaded.add(this);
        }
        break;

      default:
        throw new AssertionError("Unexpected state " + runner.state);
    }
  }
539375
function debouncebundle (time) {
  let timer = postcssify.timer
  if (timer) { clearTimeout(timer) }
  postcssify.timer = setTimeout(() => {
    postcssify.timer = null
    bundle()
  }, time)
}
752948
public void stopping() {
        boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isDebugEnabled())
            Tr.debug(tc, "stopping");

        J2EEName j2eeName = ivApplicationMetaData == null ? null : ivApplicationMetaData.getJ2EEName();
        beginStopping(true, j2eeName, ivModules); // F743-26072
    }
344608
def stop(self):
        
        if self._stack:
            try:
                self._stack.teardown()
            except Exception:
                self.fatal(sys.exc_info())

        super().stop()
248237
void shutdown() throws IOException, InterruptedException {
    configMgr.stopReload();    // stop config reloads
    fileFixer.shutdown();     // stop block fixer
    fileFixerThread.interrupt();
    server.stop();             // stop http server
  }
473529
public void stop(BundleContext bc) throws Exception {

        String blockOnStop = System.getProperty("pax.exam.regression.blockOnStop", "false");
        if (Boolean.valueOf(blockOnStop)) {
            Thread.sleep(Long.MAX_VALUE);
        }
    }
1266761
@Override
    public void serverStopping() {
        if (bundleContext != null) {
            try {
                Collection<ServiceReference<PauseableComponent>> refs = bundleContext.getServiceReferences(PauseableComponent.class, null);
                for (ServiceReference<PauseableComponent> ref : refs) {

                    PauseableComponent pc = bundleContext.getService(ref);
                    if (!pc.isPaused()) {
                        try {
                            pc.pause();
                        } catch (PauseableComponentException ex) {
                            Tr.warning(tc, "warn.did.not.pause.on.shutdown", ex.getMessage());
                        }
                    }
                }
            } catch (InvalidSyntaxException e) {
                // Should never happen, FFDC and return
                return;
            }
        }

    }