fix testrunner to stop correctly