@classmethod
def close_all_sessions(cls):
    """Close and remove all sessions in cls.session_instances."""
    for session in cls.session_instances:
        session.close()
    cls.session_instances = []
