fix(c10n): exit on script failure or if discovery url not found