tools: Corrected xml reports generation when we interrupt the test runner.