Type Reason Java.IO.IOException if a problem occurs while closing the channel.
Implements the channel closing behavior.
Closes the channel with a guarantee that the channel is not currently closed through another invocation of close() and that the method is thread-safe.
Any outstanding threads blocked on I/O operations on this channel must be released with either a normal return code, or by throwing an AsynchronousCloseException.