Test runner shutsdown properly on failure