def METHOD_NAME():
    # Class definitions can be torn down during interpreter shutdown.
    # We only need to set _exiting flag if this hasn't happened.
    if HBChannel is not None:
        HBChannel._exiting = True