void (ChannelHandlerContext context) { Client client = context.channel().attr(ClientManagerKt.getCLIENT()).get(); // if null, so, has already been explicitly removed if (client != null) { clientManager.getValue().disconnectClient(context.channel(), client, false); } }