disconnect when finished to execute command.