public void close() throws IOException, InterruptedException
        {
            // Set the thread to stop
            go.set(false);

            // Make sure the channel is closed
            socket.close();

            // And wait for it
            join();
        }
Called by the endpoints when they need to be closed.
jme3-networking/src/main/java/com/jme3/network/kernel/udp/UdpKernel.java