langchain/memory/chat_message_histories/postgres.py/PostgresChatMessageHistory/__del__
class PostgresChatMessageHistory:    def __del__(self) -> None:
        if self.cursor:
            self.cursor.close()
        if self.connection:
            self.connection.close()