handle event error