src/Zicht/Bundle/FrameworkExtraBundle/Command/AbstractCronCommand.php
public function exceptionHandler(Exception $exception)
    {
        $this->logger->addError($exception->getMessage(), array($exception->getFile(), $exception->getLine()));
        exit(-1);
    }
public function exceptionHandler(Exception $exception)
    {
        $this->logger->addError($exception->getMessage(), array($exception->getFile(), $exception->getLine()));
        exit(-1);
    }
public function exceptionHandler ( Exception $ exception ) { $ this -> logger -> addError ( $ exception -> getMessage ( ) , array ( $ exception -> getFile ( ) , $ exception -> getLine ( ) ) ) ; exit ( - 1 ) ; }
Exception handler; will log the exception and exit the script.

@param \Exception $exception
@return void
Exception handler ; will log the exception and exit the script .