Add uncaught exception catch