make sure the ES plugin raises an error when an insert error occurs