Web applications should not call System.exit(), since only the web container or the application server should stop the JVM.