public void connectionClosed(MessageConnection mc) {
for (Iterator i = profilesList.iterator(); i.hasNext(); ) {
ProfileClient p = (ProfileClient) i.next();
try {
p.terminate();
} catch (Exception e) {
if (logger.debugOn()) {
logger.debug("connectionClosed",
"Got an exception to terminate a ProfileClient: "+p.getName(), e);
}