Support a shutdown method on benchmarks