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

A leak of event loops may be causing test failures.
Maybe this is less of a concern, though, since I guess we're more worried about leaked resources from a _passing_ test causing a subsequent test to fail.