emh in the onClose method the window has been closed so it's
a nonsense to clear the window...etc....what are you trying to do???
calling a panel.destroy() maybe generates a javascript error....
try to catch exceptions....inside the onberforeclose and in the onclose...
in the beforeclose made your things and if everything is satisfied return true...
in the onClose i recommend to do nothing....and not overriding it...
beware also to not make javascript errors in the jsTerminateVideoWindow
(to be sure you can surround with a try-catch)....
consider also that first is called the beforeclose and if it returns true is called
the onclose....
ciao Pat