Don't run System.exit() in test case.