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

def close_channel(self):
        """
        Invoke this command to close the channel with RabbitMQ by sending
        the Channel.Close RPC command.
        """
        self._logger.info('Closing the channel')
        if self._channel:
            self._channel.close()