When application have hanged or quit, make it possible to re-run the scr...

...ipt automatically