Ya it looks like a lot of the clean-up implementations interact with shared state like the `SparkContext` and so on.