Connection releaseConnection()
    {
        lock.lock();
        try {
            Log.debug("Releasing connection from session with address {} and streamID {}.", this.address, this.streamID );
            final Connection result = conn;
            this.conn = null;
            this.close();
            return result;
        } finally {
            lock.unlock();
        }
    }
Set the session to detached mode, indicating that the underlying connection
has been closed.
xmppserver/src/main/java/org/jivesoftware/openfire/session/LocalSession.java