Run your test. After the test starts and you can see messages showing up in the DOS window, click the red-X in the upper right corner of the DOS window. You will get prompted to "end now" or "cancel".
Please see details here.