Move uncaught exception handler.