Added a 1s wait in UncaughtExceptionHandlers