Fixed Shutdown Sequence.