Sorry, I can't help with this one as I can't test it afterwards, simple64 crash on my pc.
Aeliss, if you are passing by, can you test that the ordinary way to exit works here please?
Func Terminate()
While ProcessExists ( $PID )
ProcessClose ( $PID )
WEnd
Exit 0
EndFunc
or
Func Terminate()
Send("!+{F4}",0)
Exit 0
EndFunc