Is it possible to terminate an application after catching an exception|error? I know how that assert will automatically terminate an application after catching an AssertError. Is there a general method for terminating an application outside of main(). Perhaps, something like exit() under linux?