public function handleFatalError()
    {
        $e = error_get_last();
        if ($e !== null && in_array($e['type'], $this->fatalErrorTypes)) {
            $event = new CErrorEvent($this, 500, 'Fatal error: ' . $e['message'], $e['file'], $e['line']);
            $this->handle($event);
            //Yii::app()->end(1); // end with abnormal ending
        }
    }