Handle threads exiting unexpected during shutdown (#50907)
Handle threads exiting unexpected during shutdown (#50907)

If a thread exits right when we are trying to force an exception
to shut it down, setting the exception will fail with SystemError.
At this point in the shutdown process we want to move on as this
will cause the shutdown to abort
home-assistant/home-assistant,kennedyshead/home-assistant,jawilson/home-assistant,w1ll1am23/home-assistant,lukas-hetzenecker/home-assistant,Danielhiversen/home-assistant,FreekingDean/home-assistant,FreekingDean/home-assistant,home-assistant/home-assistant,aronsky/home-assistant,rohitranjan1991/home-assistant,GenericStudent/home-assistant,jawilson/home-assistant,aronsky/home-assistant,rohitranjan1991/home-assistant,mezz64/home-assistant,rohitranjan1991/home-assistant,lukas-hetzenecker/home-assistant,mezz64/home-assistant,sander76/home-assistant,nkgilley/home-assistant,nkgilley/home-assistant,sander76/home-assistant,Danielhiversen/home-assistant,kennedyshead/home-assistant,toddeye/home-assistant,toddeye/home-assistant,GenericStudent/home-assistant,w1ll1am23/home-assistant