exit on uncaught exception