To enable monitoring interrupted tasks, run the following command:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.task.reaper.enabled=true
Now the task will be monitored until the task actually finishes execution.