I found a reasonable solution. This is a bit related, but works very well. I created a table with a GUID field. It did not start with any entries. Here's the solution:
- The user clicks "Exit".
- The script output adds a GUID to the new table.
- script URL GUID .
- URL GUID , GUID.
- GUID , GUID / ( ).
- GUID , .
, , . , .