record errors as events in controller