Don't call DEAD_WEAK finalizer again on shutdown (#7170)