tester: Correctly handle contro-c.

Add support to kill running tests if the user presses control-c.