Handle packet loss in UDP benchmark