If the rest of the program is still running while you fix it, yes?
Also, restarting endlessly is just one strategy between multiple others.