class_docstr: This handler handles connection and execution of the SurrealDB statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","SurrealDB","statements","."]
docstr: Close the existing connection to the SurrealDB database
docstr_tok: ["Close","the","existing","connection","to","the","SurrealDB","database"]
code: def disconnect(self):
      """
      Close the existing connection to the SurrealDB database
      """
      if self.is_connected is False:
          return
      try:
          self.connection.close()
          self.is_connected = False
      except Exception as e:
          logger.error(f"Error while disconnecting to SurrealDB, {e}")
  
      return
  
imports: from collections import OrderedDict
  from typing import Optional
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from .utils.surreal_get_info import *
  import pysurrealdb
  import pandas
label_desc: Use image node_id 4 for calling the SurrealDBHandler obj's underlying member method code with example usage: obj.disconnect() without return types