Handle asynchronous uncaught errors with domains