check if DAGScheduler is shutdown in SparkContext
add test case
make code more testable and fix test cases
stop the eventActor from supervisor
create eventActor in the constructor of DAGScheduler