A ClosedChannelException is thrown when a channel is closed for the type of operation attempted.
ClosedChannelException