added a SecurityManager that prevents System exit calls and wraps them in SystemExitExceptions