Implemented handling for a fatal shutdown.