Uncaught exception thrown in shutdown function.