zendframework/modules.zendframework.com — pull request #6 by insekticid (2011-11-04 17:27:12+00:00)
Title: if error occurred return PhpHttpResponse which have send() method

$app = new Zend\Mvc\Application();
$bootstrap = new Zend\Mvc\Bootstrap($moduleManager);
$bootstrap->bootstrap($app);

$response = $app->run();
$response->send();