code: def close(self):
          
          try:
              self.connection.close()
              self.connection = None
          except Exception:
              if not self.fail_silently:
                  raise
docs: Close any open HTTP connections to the API server.