[SPARK-2322] Exception in resultHandler could crash DAGScheduler and shutdown SparkContext.

This should go into 1.0.1.