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

A leak of event loops may be causing test failures.
Yeah, either would be better, but since each test creates a different set of things, and sometimes calling stop() throws an exception, I decided to just do it in the non-failing case for this PR.