protected function _sendLine($cmd, $options = array())
    {
        if (!empty($options['debug'])) {
            $this->_debug->client($options['debug']);
        }

        if ($this->_debug->debug) {
            $timer = new Horde_Support_Timer();
            $timer->push();
        }

        try {
            $this->_connection->write($cmd, empty($options['debug']));
        } catch (Horde_Imap_Client_Exception $e) {
            throw $e;
        }

        $resp = $this->_getResponse(
            empty($options['multiline']) ? false : $options['multiline']
        );

        if ($this->_debug->debug) {
            $this->_debug->info(sprintf(
                'Command took %s seconds.',
                round($timer->pop(), 4)
            ));
        }

        return $resp;
    }