Put try/catch block around EnderShutdown's main method.