public function shutdown()
    {
        $error = error_get_last();
        if ($error !== null ) {
            $this->setMessage($error['message']);
            $this->setStatusCode(500, $error['message']);
            $this->outputBody();
            exit();
        }
    }