Made script exception handling more useful by indicating what script the error occurred in.