Work around traceback in atexit
Work around traceback in atexit

Bug: T74699
Change-Id: I527ba5ba32fd3d517ca654e4beb34156953d5e21

hasteur/g13bot_tools_new,h4ck3rm1k3/pywikibot-core,wikimedia/pywikibot-core,darthbhyrava/pywikibot-local,jayvdb/pywikibot-core,Darkdadaah/pywikibot-core,magul/pywikibot-core,wikimedia/pywikibot-core,npdoty/pywikibot,h4ck3rm1k3/pywikibot-core,happy5214/pywikibot-core,happy5214/pywikibot-core,PersianWikipedia/pywikibot-core,Darkdadaah/pywikibot-core,magul/pywikibot-core,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,smalyshev/pywikibot-core,npdoty/pywikibot,hasteur/g13bot_tools_new