the autoexit works for my version..
but if you are not high enough or theres someone who kills you with one hit it wont work because the program(script) needs about 1 or 2 seconds to close the game... and also to detect that your health is low..
you can test it simply if you are begin mining with the script near a rock monster...
this autoexit isnt something for lvl 15 chars !
you also could be killed with lvl 50 if a lvl 120 comes to kill you... think about that
Greetz