Fixing shutdown command