Shuts down the terminal (and app)
540085
def _exit(self):
        
        self._removeInputPrompt()
        print(self._color(self.COLOR_YELLOW, 'CLOSING TERMINAL...')) 
        self.stop()
454021
def shutdown!
      HotTub.logger.info "[HotTub] Shutting down pool #{@name}!" if HotTub.logger
      @shutdown = true
      kill_reaper if @reaper
      drain!
      @shutdown = false
      nil
    end
1286451
async def on_shutdown(self, app):
        
        for ws in self.clients.copy():
            await ws.close(code=WSCloseCode.GOING_AWAY,
                           message='Server shutdown')
        self.shutdown()
914311
def close(self):
        """"""
        if not self.lock_disable and self.session_config_lock:
            self._unlock()
        self.device.close()
835571
public void shutdown() {
    log.info("Notifying device listener about shutdown");
    for (HardwareDeviceListener listener : deviceListeners) {
      for (AndroidDevice device : connectedDevices.values()) {
        listener.onDeviceDisconnected(connectedDevices.get(device));
      }
    }
    log.info("Removing Device Manager listener from ADB");
    AndroidDebugBridge.removeDeviceChangeListener(this);
    if (!shouldKeepAdbAlive) {
      AndroidDebugBridge.disconnectBridge();
    }
    AndroidDebugBridge.terminate();
    log.info("stopping Device Manager");
    // TODO add thread interrupt and join handling
  }
344608
def stop(self):
        
        if self._stack:
            try:
                self._stack.teardown()
            except Exception:
                self.fatal(sys.exc_info())

        super().stop()
368809
function shutdown()
    {
        if ($this->exception_handler_called) {
            return;
        }

        if (ob_get_level() > 0)
            ob_get_flush();

        if ($this->level) {
            echo ($this->terminal ? PHP_EOL : '<br>');
            $t  = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
            $te = sprintf(' %.2f mili sec.', $t * 1000);
            self::dump('Elapsed time: ' . $te, 0);
        }

        if ($this->level > 1) {
            $files = get_included_files();
            self::dump($files, 0);
        }
    }
998893
public static void shutdown() {
		UdpResources resources = udpResources.getAndSet(null);
		if (resources != null) {
			resources._dispose();
		}
	}
944003
def shutdown(self):
        
        with self._lock:
            for cid in list(self.connections.keys()):
                if self.connections[cid].executing:
                    raise ConnectionBusyError(cid)
                if self.connections[cid].locked:
                    self.connections[cid].free()
                self.connections[cid].close()
                del self.connections[cid]
1374964
def shutdown(self, exitcode=0, exitmsg=None):
        '''
        
        '''
        log.info('The salt-api is shutting down..')
        msg = 'The salt-api is shutdown. '
        if exitmsg is not None:
            exitmsg = msg + exitmsg
        else:
            exitmsg = msg.strip()
        super(SaltAPI, self).shutdown(exitcode, exitmsg)
1051252
public function shutdown()
	{
		$this->shutdown = true;
		$this->logger->log(Psr\Log\LogLevel::NOTICE, 'Shutting down');
	}
301647
public void shutdown ()
    {
        if (_chatdir != null) {
            _chatdir.removeChatFilter(this);
            _chatdir = null;
        }
        _ctx.getClient().removeClientObserver(this);
    }
639183
def stop(self):
        """"""
        args = self.getShutdownArgs() + ['shutdown']
        Pyro.nsc.main(args)
        self.join()
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();
    }
758875
public void shutdown() {
		// remove all of our temp directories
		for (File path : paths) {
			try {
				if (path != null) {
					if (path.exists()) {
						FileUtils.deleteDirectory(path);
						LOG.info("I/O manager removed spill file directory {}", path.getAbsolutePath());
					}
				}
			} catch (Throwable t) {
				LOG.error("IOManager failed to properly clean up temp file directory: " + path, t);
			}
		}
	}
1007532
public static function shutdown()
    {
        if (defined('QCUBED_TIMER_OUT_FILE') && class_exists('\\QCubed\\Timer')) {
            $strTimerOutput = \QCubed\Timer::VarDump(false);
            if ($strTimerOutput) {
                file_put_contents(QCUBED_TIMER_OUT_FILE, $strTimerOutput . "\n", FILE_APPEND);
            }
        }

        $error = error_get_last();
        if ($error &&
            is_array($error)
            /*&&
            (!defined('QCodeGen::DebugMode') || QCodeGen::DebugMode)*/
        ) { // if we are codegenning, only error if we are in debug mode. Prevents chmod error.

            self::handleError (
                $error['type'],
                $error['message'],
                $error['file'],
                $error['line']
            );
        }
    }
827812
def exit(self):
        
        self.logger.warning("Stopping daemon.")
        os.remove(self.pid)
        sys.exit(0)