def METHOD_NAME(_):
    try:
        flask.g.session.close()
    except Exception:
        logging.warning(
            "There's been an arror while calling session.close() in teardown_request."
        )
    try:
        flask.g.db_conn.close()
    except Exception:
        logging.warning(
            "There's been an error while calling db_conn.close() in teardown_request."
        )