Added silent handling of uncaught exceptions