private void onRequestAborted(Exception exception) {
    if (responseChannel != null) {
      logger.trace("Aborting request on channel {}", ctx.channel());
      responseChannel.close(exception);
      channelOpen.set(false);
    } else {
      logger.debug("No response channel available for channel {}. Closing it immediately", ctx.channel());
      close();
    }
  }
Aborts the request and sets state to indicate that the channel is no longer usable.
@param exception the {@link Exception} to send to the client if possible.
ambry-rest/src/main/java/com/github/ambry/rest/NettyMessageProcessor.java