Fixes #54 Provide error event