I am afraid it was not clear what exactly you were trying to do and I got the wrong impression.
I am still not sure what the link inside the iframe does, as there is no "close" event or method for iframes. In case the iframe is removed from the DOM, then you can use the DOMNodeRemoved event in the parent page. The code below shows how to check whether a Window iframe is triggering an event and how to obtain reference to the corresponding Window instance. You can use this information even if the desired implementation is different.
target = $(e.target);
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI