@Override
public void exceptionCaught(IoSession session, Throwable cause) {
logger.warn("Unexpected exception.", cause);
if (cause instanceof WriteException) {
WriteException e = (WriteException) cause;
logger.warn("Failed write requests: {}", e.getRequests());
}
}