Exit with code 1 on error.