Added some code to handle ctrl+c when doing a run test.
It doesn't work yet.