docs: def close(self):
          """
          Close the connection this context wraps.
          """
          self.logger = None
          for exc in _EXCEPTIONS:
              setattr(self, exc, None)
          try:
              self.mdr.close()
          finally:
              self.mdr = None