This doesn't have anything to do with the ON CLOSE (which is working perfectly), it's because Windows is blocking TASKEND from enumerating the processes to get the window handle for %_startpid. Windows really doesn't like you doing things like that when it's shutting down a process.
ON CLOSE will be triggered if the user closes the console.
But an EXIT will not trigger an ON event, because you're specifically asking in your own code for TCC to exit. In that case, you can handle it without an ON event.
You can install on, and run from, a USB key. But you cannot just put the key there.
If you're running v22, you can uninstall from the Help / Register dialog. Or, you can use the same PC name -- TCMD will allow you to install an unlimited number of times to the same computer name.
The "TCC Prompt" title is actually coming from TCC, if it determines that the current session is "TCC.EXE". TCMD will check the titles of the hidden console windows, and update the tab titles accordingly.
However, build 17692 changed the SetConsoleTitle behavior - if the console window is...
Version 18 has two installers, one for 32-bit and one for 64-bit. (More recent versions of TCMD have a combined installer that installs the appropriate version depending on your Windows type.)
It sounds like you're running the 32-bit installer.
I know what an associative array is. What I don't understand is what the OP wants to do with it.
Lacking context, it's like saying
instead of something useful, like "I want a command line interface to Skynet."
That syntax is only valid when running CMD.EXE & DIR on a machine with specific country code and date/time settings. DIR in CMD.EXE on my system doesn't look like DIR on your system.
We made the decision when creating TCC to standardize on a format that works the same on all systems. If you...
I know - but adding a reference to the functions page requires me to edit 380 other pages. Add the commands and variables, and you've got another 500+ pages. And it can't be cut & paste, because it has to reference the appropriate category.