Added disconnect command and fixed shutdown command.