private void close0() throws IOException { if (!live) { return; } live = false; if (socketChannel != null && socketChannel.isOpen()) { readHandler.shutdown(); writeHandler.shutdown(); socketChannel.close(); } }