Debugging of ClosedChannelException