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

A leak of event loops may be causing test failures.
If you have SSH access to AMPLab Jenkins, you can download per-test log dumps (see the email that I sent to our Spark list for instructions).