Ensure that domain.on('error') catch only uncaught exception and not other.