void (@NotNull Throwable error, @NotNull Logger log, @NotNull Channel channel) { // don't report about errors while connecting // WEB-7727 try { if (error instanceof ConnectException) { log.debug(error); } else { log(error, log); } } finally { log.info("Channel will be closed due to error"); channel.close(); } }