Remove return values, add domains and emitters for error handling, v0.2.4.