Debugged shutdown command