changes for request #125: return non-zero on errors.