Add missing uncaught exception handlers