I have a program (let's call it "A") which sometimes crashes.
I've created a program that always checks to see if "A" exists, and if it isn't it will relaunch it (so when "A" crashes it will open again).
the problem is that it will open it again everytime i close it, so is there a way to check if the program crashed or have been normally closed?