Fixed workaround for dead handlers.Added tracking of last document per
browser and attempt to unload that on location change.