domain: use events error observer

Domains have now been completely seperated from core, using the error
observer callback.