Can we use the exception code instead? That would provide a way of custom-setting the exit code. Something like that:

```php
exit((int)$exception->getCode() ?: 1);
```