sendUntagged(mServer.getGoodbye(), true);
sendUntagged(ImapServer.getGoodbye(), true);
    protected void dropConnection() {        if (mSession != null) {            mSession.setHandler(null);            SessionCache.clearSession(mSession.getSessionId(), mSession.getAccountId());            mSession = null;        }        try {            if (mOutputStream != null) {                if (!mGoodbyeSent)                    sendUntagged(mServer.getGoodbye(), true);                mGoodbyeSent = true;                mOutputStream.close();                mOutputStream = null;            }            if (mInputStream != null) {                mInputStream.close();                mInputStream = null;            }        } catch (IOException e) {            INFO("exception while closing connection", e);        }    }