make a simple jframe example that makes a txt file on startup in same directory
write "status =1" into this file
when the program is exited or killed !!!! then the file should disappear.
this should also work if the program is killed whith tast manager the file should only be there when the program runs.