Added error reporting hook on the event factory