default boolean isClosed() {
        return getStatus() == Status.CLOSED;
    }
Returns true if the link to the remote XMPP entity (the session) is closed.

@return true if the session is closed.
xmppserver/src/main/java/org/jivesoftware/openfire/session/Session.java