'Invoke this command to close the channel with RabbitMQ by sending
the Channel.Close RPC command.'

def close_channel(self):

    if (self._channel is not None):
        LOGGER.info('Closing    the    channel')
        self._channel.close()
