added the ability to kill the test pid if a test fails