System.exit
No. Depending on how you run the tests, you may get a security exception from the harness.