using domain instead on uncaughtError