Remove System.exit(0) as it caused tests to fail