improve _setUncaughtExceptionHandler