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

A leak of event loops may be causing test failures.
This is the most significant leak, we'd leak one event loop per SparkContext