def add_on_connection_close_callback(self):
_logger.debug('<STR_LIT>')<EOL>self._connection.add_on_close_callback(self.on_connection_closed)<EOL>
This method adds an on close callback that will be invoked by pika
        when RabbitMQ closes the connection to the publisher unexpectedly.