def stop(self):
_logger.debug('<STR_LIT>')<EOL>self._closing = True<EOL>self.stop_consuming()<EOL>self._connection.ioloop.start()<EOL>_logger.info('<STR_LIT>')<EOL>
Cleanly shutdown the connection to RabbitMQ by stopping the consumer
        with RabbitMQ. When RabbitMQ confirms the cancellation, on_cancelok
        will be invoked by pika, which will then closing the channel and
        connection. The IOLoop is started again because this method is invoked
        when CTRL-C is pressed raising a KeyboardInterrupt exception. This
        exception stops the IOLoop which needs to be running for pika to
        communicate with RabbitMQ. All of the commands issued prior to starting
        the IOLoop will be buffered but not processed.