SPARK-2491: Fix When an OOM is thrown,the executor does not stop properly.