Use domains to catch exceptions.