[SPARK-3293] yarn's web show "SUCCEEDED" when the driver throw a exception in yarn-client

Basically there are a few cases:
- If the machine with the AM dies, then sure, YARN could relaunch it (hopefully that is user-configurable in case their code has weird side effects)
- If the driver returns 0, it's finished
- If the driver crashes for another reason, it could be a bug in the driver; I'm not sure we should just resubmit in that case