Fix killing of test server when tests fail