code: protected void closeChannel(Channel channel) {
          MessageDecoder.removeTransmitHistogram(channel);
          channel.close().awaitUninterruptibly();
          allChannels.remove(channel);
      }
docs: close a channel