catch a number of uncaught exceptions