initiating shutdown seqeuence