Use exit code 1 for errors when checking, 2 for other errors.