SPARK-829: scheduler shouldn't hang if a task contains unserializable objects in its closure.