def METHOD_NAME(self) -> StatusResponse:
    """
    Check connection to the handler.
    Returns:
        HandlerStatusResponse
    """
    response = StatusResponse(False)
    need_to_close = self.is_connected is False
    try:
        self.connect()
        response.success = True
    except Exception as e:
        log.logger.error(f'Error connecting to Databricks {self.connection_data["schema"]}, {e}!')
        response.error_message = str(e)
    finally:
        if response.success is True and need_to_close:
            self.disconnect()
        if response.success is False and self.is_connected is True:
            self.is_connected = False
    return response