//if this frame is closed as a result of connection loss and we
// try to leave
//the channel, it will not work, so we need to catch it.
window.removed();
try {
window.leave();
} catch (IllegalStateException e) {
com.valhalla.Logger
.debug("Caught Illegal State Exception when leaving window: "
+ window.toString());