docs: def shutdown_connections(self):
          """This method closes the connections to RabbitMQ."""
          if not self.is_shutting_down:
              self.set_state(self.STATE_SHUTTING_DOWN)
          for name in self.connections:
              if self.connections[name].is_running:
                  self.connections[name].shutdown()