kill the test subprocess if it is still running