protected void closeEndpoint( NioEndpoint p ) throws IOException
    {
        //log.log( Level.FINE, "Closing endpoint:{0}.", p );
            
        thread.cancel(p);
    }
Called by the endpoints when they need to be closed.
jme3-networking/src/main/java/com/jme3/network/kernel/tcp/SelectorKernel.java