Isolate System.exit(1) to the CLI main method so as to not affect method...

...-level unit testing.