newSession(ch, entry.handler, entry.config, entry);
success = true;
} catch (Throwable e) {
entry.setException(e);
} finally {
key.cancel();
if (!success) {
try {
ch.close();
} catch (IOException e) {
ExceptionMonitor.getInstance().exceptionCaught(e);