I am using a NN processing tool on a couple thousand of files but it crashes randomly. So I would please like a script that restarts the process for the remaining files (considering the output directory) whenever the process crashes or I pause it in order to gain access to more PC resources...