SPARK-1407 drain event queue before stopping event logger