Catch NPE from ReadableByteChannel.close() when connection breaks