A file that has worked fine for months has suddenly started to crash (file goes into "not responding" and completely closes) when running a long script that create