deployment.php: error handlers are registered as first