[SPARK-4183] Close transport-related resources between SparkContexts

A leak of event loops may be causing test failures.
This was a comment @rxin asked for, probably won't hurt anything.