added support for exit process with unhandled exception