remove spinner after iarc form window is closed (bug 942870)

Detects when a pop-up window is closed to remove a loading spinner/throbber.

Got these codes from StackOverflow-ing.