logger.log(Logger.DEBUG,"Can't get reason string for destroying connection " + uid);
}
if (reason == null) reason = "REASON NOTFOUND";
if (con != null && con.isValid()) {
try {
con.destroyConnection(false,GoodbyeReason.CLIENT_CLOSED, reason);
} catch (Exception ex) {
logger.logStack(Logger.DEBUG,"error destroying connection " + con , ex);
}
}
itr.remove();