Spark 2037: yarn client mode doesn't support spark.yarn.max.executor.failures

There are other states the application could be in that are fine.  like SUBMITTED, ACCEPTED. I realize waitForApp waits for the running state, but  I think it would be better to check if it is in one of the finished states, then we stop it:

appReport.getYarnApplicationState() == YarnApplicationState.FINISHED
        || appReport.getYarnApplicationState() == YarnApplicationState.KILLED
        || appReport.getYarnApplicationState() == YarnApplicationState.FAILED