/**
* Logs out of the server and terminates the connection.
*
* @param boolean $sendLogoutCMD Whether to send LOGOUT command before
* disconnecting.
*
* @throws \Horde\ManageSieve\Exception
*/
protected function _cmdLogout($sendLogoutCMD = true)
{
$this->_checkConnected();
if ($sendLogoutCMD) {
$this->_doCmd('LOGOUT');
}
$this->_sock->close();
$this->_state = self::STATE_DISCONNECTED;
}