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

A leak of event loops may be causing test failures.
This is all for my current jenkins debugging, where I can see the printlns but not logs.