Shutdown services
434874
private void shutdownServices() {
        if (producerService != null) {
            producerService.shutdown();
            producerService = null; 
        }
        
        if (deserializerService != null) {
            deserializerService.shutdown();
            deserializerService = null;
        }
    }
1356189
@Override
    public void shutdown() throws BatchContainerServiceException {
        logger.entering(CLASSNAME, "shutdown");
        logger.fine("do nothing");
        logger.exiting(CLASSNAME, "shutdown");
    }
158823
def shutdown(self):
        """"""
        self.stopped.set()

        if hasattr(self.api, "shutdown"):
            self.api.shutdown()

        for thread in self.thread.values():
            thread.join()
506312
def shutdown_connections(self):
        """"""
        if not self.is_shutting_down:
            self.set_state(self.STATE_SHUTTING_DOWN)
        for name in self.connections:
            if self.connections[name].is_running:
                self.connections[name].shutdown()
57472
def shutdown(self):
        ''''''
        if self._proxy:
            os.sync()
            self._proxy(*self._args)
572987
def shutdown(cls):
        """"""
        for pid in list(cls._pools.keys()):
            cls._pools[pid].shutdown()
        LOGGER.info('Shutdown complete, all pooled connections closed')
473000
static synchronized void shutDownHub() {
        LOGGER.entering();
        if (!isRunLocally()) {
            LOGGER.exiting();
            return;
        }

        // shutdown in reverse order
        Collections.reverse(toBoot);
        for (LocalServerComponent eachItem : toBoot) {
            eachItem.shutdown();
        }
        clearToBootList();
        LOGGER.exiting();
    }
940937
def shutdown(self, timeout=None):
        """"""
        try:
            super(BaseDrmaaManager, self).shutdown(timeout)
        except Exception:
            pass
        self.drmaa_session.close()
199322
public void shutdown() {
        // shutdown each single thread executor in the managed collection
        for (ExecutorService singleThreadExecutorService : singleThreadExecutorServices) {
            shutdownExecutor(singleThreadExecutorService);
        }

        // shutdown scheduled executor instance
        shutdownExecutor(getInternalScheduledExecutorService());
        shutdownExecutor(getInternalGpioExecutorService());

    }
986080
final void shutdown() {

      boolean deactivated = false;
      try {
         deactivated = deactivate();
      } catch(InterruptedException ie) {
         Thread.currentThread().interrupt();
      }

      if(!deactivated) {
         deactivateNow();
      }

      reopenService.shutdownNow();
      reopenExecutor.shutdown();

      for(Thread closerThread : closerThreads) {
         closerThread.interrupt();
      }

   }
582867
static public function _registered_shutdown()
	{
		if( self::$_byPassCallBacks )
		{
			return;
		}
		#- first sort the stack
		uasort( self::$_registeredCallbacks, array( __class__, '_compare' ) );
		foreach( self::$_registeredCallbacks as $cb )
		{
			call_user_func_array( $cb[ 0 ], $cb[ 3 ] );
		}
	}
470934
public void shutdown() {
    LOGGER.info("Responder shutting down: [" + _runtimeId + "]");
    for (Transport t : _transports) {
      try {
        t.shutdown();
      } catch (TransportException e) {
        LOGGER.warn( "Error shutting down transport: [" + t.transportName() + "]", e);
      }
    }
  }
639303
public static void shutdown() {
        if (MetricsManager.executorService != null) {
            MetricsManager.executorService.shutdown();
            MetricsManager.executorService = null;
        }
        if (MetricsManager.instance != null) {
            MetricsManager.instance = null;
            MetricsManager.poolManager.shutdown();
            MetricsManager.poolManager = null;
            MetricsManager.httpClient = null;
            MetricsManager.rootMetricsLogger = null;
        }
    }
85256
def shutdown(self):
        """"""
        if self.OPEN:
            self.OPEN = False
            scoop.SHUTDOWN_REQUESTED = True
            self.socket.send(b"SHUTDOWN")
            self.socket.close()
            self.infoSocket.close()
            time.sleep(0.3)
1000288
static void shutDown() {
        ServerRequestQueue.shutDown();
        PrefHelper.shutDown();
        BranchUtil.shutDown();
        DeviceInfo.shutDown();

        // BranchStrongMatchHelper.shutDown();
        // BranchViewHandler.shutDown();
        // DeepLinkRoutingValidator.shutDown();
        // InstallListener.shutDown();
        // InstantAppUtil.shutDown();
        // IntegrationValidator.shutDown();
        // ShareLinkManager.shutDown();
        // UniversalResourceAnalyser.shutDown();

        // Release these contexts immediately.
        if (branchReferral_ != null) {
            branchReferral_.context_ = null;
            branchReferral_.currentActivityReference_ = null;
        }

        // Reset all of the statics.
        branchReferral_ = null;
        customReferrableSettings_ = CUSTOM_REFERRABLE_SETTINGS.USE_DEFAULT;
        bypassCurrentActivityIntentState_ = false;
        disableInstantDeepLinking = false;
        isActivityLifeCycleCallbackRegistered_ = false;
        isAutoSessionMode_ = false;

        isForcedSession_ = false;
        isSimulatingInstalls_ = false;

        checkInstallReferrer_ = true;
    }
965676
def shutdown(self, stop_process=False):
        ''''''
        self.info("Agency.shutdown() called.")
        return self._shutdown(stop_process=stop_process, gentle=True)
435536
public void shutdown() throws IOException {
		if(shutdownDone) {
			return;
		}
		if(resourceStore != null) {
			resourceStore.shutdown();
		}
		if(resourceIndex != null) {
			resourceIndex.shutdown();
		}
		if(shutdownables != null) {
			for(Shutdownable s : shutdownables) {
				s.shutdown();
			}
		}
		shutdownDone = true;
	}