Another attempted workaround for dead document access due to not always
catching the document unload event.