Handling uncaught exceptions and running service execution within a domain