Hi Bonczek,
there are many ways to continue a program after it stops, one of them is to continue exactly where was stopped, another one is to be aborted, the option that I suggest is abort and start the process from the beginning, and you should add a routine into the home sequence to decide if you will scrap the part or continue with the process.
In this step I suggest a sensor to decide if the part is ok or if you should scrap it.
Or did you mean something different?
Greetings.