Set uncaught exception handler right at startup

Don't wait until domains are used.
Fix typo