handle error from processing events