Fixes #36 - Provide error event