Exit with non-zero return code on failure.