Removed System.exit(0)