Properly send SparkListenerStageSubmitted and SparkListenerStageCompleted.