Fix failing test
Propagate errors from all callbacks up to main runloop

Fixes #74
Add basic support for domains

Closes #75