Andreas Sewe - 2012-09-06

Why should calling System.exit prevent shutdown hooks from running? Quoting the JavaDoc <http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exit%28int%29>: "In the first phase all registered shutdown hooks, if any, are started in some unspecified order and allowed to run concurrently until they finish."