added emitter to domain for emmiter errors
switched out exit methods for error crash method
Merge pull request #66 from NewSpring/feature-error-event

Feature error event