Calling exit aborts the entire application making it difficult work around in some situations, such as during unit tests or when the outcome of an invocation should be logged.
An option to throw an exception instead of calling exit would be great!
Relevant line: