Closure in $app->error() takes 3 arguments

see https://github.com/silexphp/Silex/blob/master/src/Silex/ExceptionListenerWrapper.php#L53