move NIO socket to mx.nio