vgen - how to detect browser-closing action

Hi all,

I'm trying to record a browser-closing action and open a new browser in the same recording session in vgen, but it doesn't record any thing.
is there a way or a work around to do that?

thank you very much,
KF