fix SparkBase.stop to clear static variables