It seems that
msg.post("@system:", "exit", {code = 0})
It is possible for the engine process to not actually close fully like it should. Release builds. This is something some testers have reported about a game we are releasing soon.
Sample computer: Windows 7 x64; AMD Phenom II X4; 8GB memory; nVidia GTX 1050.
This user says it consistently does not close properly when he clicks the in game exit button, where we use the @system exit call. Apparently pressing the window X keeps the process running too…
What can we do about this? I assume os.exit() is the wrong idea, would it ensure closure of the engine process.