request.exception = new IllegalArgumentException(
"Address not bound: " + request.address );
}
else
{
SelectionKey key = ch.keyFor( selector );
request.registrationRequest = ( RegistrationRequest ) key.attachment();
key.cancel();
selector.wakeup(); // wake up again to trigger thread death
ch.disconnect();
ch.close();