[SPARK-2037]: yarn client mode doesn't support spark.yarn.max.executor.failures

Seems to be not properly stop `sc`. I have not tested in a cluster of hadoop 0.23, But, I test in the hadoop 2.3 no problem.