remoteSeam-method otr you could do some real nice
hackingand create a
keep-aliveajax-push (a4j:push) , which must be answered within a specific time-period.
The server needs to have a timer which expires when no
pingis received from the browser. It's not 100% save, but you will have a really nice indication that your windows was closed.