Hi, I'd suggest to use Channel.isOpen() to determine if the channel has been closed. Also, please use IOException instead of ClosedChannelException. There are many other exceptions that extends IOException that indicate the closed connection, so it's much simpler and safer to use IOException. HTH