setting defaultUncaughtErrorHandler handler