I have spent all night debugging, and I would trade any amount of peace for a script that just finishes without throwing an exception.