public void formalClose() {
        this.resume = false;
    }
Called when a session receives a closing stream tag, this prevents the
session from being detached.
xmppserver/src/main/java/org/jivesoftware/openfire/streammanagement/StreamManager.java