AppserverIo\Appserver\Core\AbstractContainerThread::shutdown PHP Method

shutdown() public method

Does shutdown logic for request handler if something went wrong and produces a fatal error for example.
public shutdown ( ) : void
return void
    public function shutdown()
    {
        // check if there was a fatal error caused shutdown
        if ($lastError = error_get_last()) {
            // initialize type + message
            $type = 0;
            $message = '';
            // extract the last error values
            extract($lastError);
            // query whether we've a fatal/user error
            if ($type === E_ERROR || $type === E_USER_ERROR) {
                $this->getInitialContext()->getSystemLogger()->critical($message);
            }
        }
    }