Close the connection when the benchmark is done.