A little error handling so scripts can run through in batch