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

Yes the retry logic is for resubmitting the AM in the case it was on machine that went down, slow, network loss, etc..

Ok so we'll go with if it System.exit(0) or returns 0 then it succeeded and everything else for now is failure and will retry if configured to retry.  If we don't want it to retry in certain cases we would need more information from the driver.