exit 1 if there were errors.