I ran into a snag using a scriptJob that triggers on deleteUI... it appears that the script called by a scriptJob fires AFTER the UI is deleted, which doesn't solve my problem...
the script I want to run when the window closes queries the value of certain elements and stored them to an optionVar...
the problem is, if I use a scriptJob that triggers on deleteUI, the UI is deleted first, then the script is run and can't find the values I wish to store...