code: public function shutdown(){
  		if($this->stopPropagation)
  			return;
  		$error = error_get_last();
  		if( $error !== NULL) {
  			$file = $error["file"];
  			$line = $error["line"];
  			$message = $error["message"];
  
  			$this->fireHandlers(new SyntaxException($message,$file,$line));
  		}
  	}
docs: Shutdown callback