terminate process if we have an uncaught exception