clear reference of SparkEnv after stop
Merge branch 'env' into streaming
merge branch of env, make tests stable.