Add error handling for a malformed event