code: def close(self):
          
          try:
              if self._connection:
                  backend = self.create_backend()
                  backend.close_connection(self._connection)
          except socket.error:
              pass
          self._closed = True
docs: Close the currently open connection.