Removed a System.exit line that was prematurely killing the program