Add a wrapper for flagging documents as Error’d & notifing errors.