Fixed minor bug in shutdown command.