added disposed check
windowName is now random again, and popups get closed automatically when
the opener is closed.
externalReload() now disposes globalHashMap.