Hi, actually it still works for me, but I think it depends on how you exit the game. Exiting with "Esc" is different from exiting through the LaunchBox pause menu. I personally put the same script in both contexts, so I get the same result whether I exit with "Esc" or using the LaunchBox button combination or the pause menu.
Also, of course, it depends on your configuration, which might be different from mine or others. In general, though, I recommend using WinClose instead of Process, Close. You can try something like this:
WinClose, ahk_exe {{{StartupEXE}}}
or
WinClose, ahk_exe mame.exe
or (if you want to be sure)
WinClose, ahk_exe {{{StartupEXE}}}
Sleep 200
WinClose, ahk_exe mame.exe
The WinClose approach allows you to directly close the emulator without any risk of losing save data, unlike Process
Indeed