Fixed bug cli exiting on non-error exitcode when exception occured