@Override
  public void close() throws IOException {
    if (channelOpen.compareAndSet(true, false)) {
      inputStream.close();
    }
  }
{@inheritDoc}
<p/>
Also closes the underlying {@link InputStream}.
@throws IOException
ambry-commons/src/main/java/com/github/ambry/commons/InputStreamReadableStreamChannel.java