You want to abort a test plan programmatically without using exit. Calling exit just aborts the script and continues on to the next test case.
[ ] @("$StopRunning") ()from a test case or a recovery system function such as ScriptExit(), which is called for each test case in the test plan, or TestCaseExit().
This call will stop everything without even invoking the recovery system. Calling it will generate the following exception message, with no call stack: Exception -200000