Bug fix: SPARK-796

[SPARK-796](https://spark-project.atlassian.net/browse/SPARK-796): Jobs are always marked as SUCCEEDED even it's actually failed on Yarn.