Proper error checking in the charm-event endpoint.