Removed unexpected System.exit()