Terminate the tor process cleanly after we have run a test.