Paranoid uncaught exception handling for exceptions during shutdown
Catch/log errors deleting temp dirs
Pull detection of being in a shutdown hook into utility function.
Merge pull request #482 from woggling/shutdown-exceptions

Don't call System.exit over uncaught exceptions from shutdown hooks