final public function shutdown($exception = null, $manual = false, $statusCode = 0)
    {
        $hasError = $this->handleErrors($exception);
        if ($hasError) {
            $statusCode = 1;
        }

        if (!$manual) { //if shutdown handler
            /**
             * Warning: this part will always be executed,
             * independent of the outcome of the script.
             */
            ErrorHandler::restore();
        }
        exit($statusCode);
    }
final public function shutdown($exception = null, $manual = false, $statusCode = 0)
    {
        $hasError = $this->handleErrors($exception);
        if ($hasError) {
            $statusCode = 1;
        }

        if (!$manual) { //if shutdown handler
            /**
             * Warning: this part will always be executed,
             * independent of the outcome of the script.
             */
            ErrorHandler::restore();
        }
        exit($statusCode);
    }
final public function shutdown ( $ exception = null , $ manual = false , $ statusCode = 0 ) { $ hasError = $ this -> handleErrors ( $ exception ) ; if ( $ hasError ) { $ statusCode = 1 ; } if ( ! $ manual ) { //if shutdown handler /**
             * Warning: this part will always be executed,
             * independent of the outcome of the script.
             */ ErrorHandler :: restore ( ) ; } exit ( $ statusCode ) ; }
Finishes the execution of the Application.

This method is also registered as a shutdown handler.
Finishes the execution of the Application .