recover from pcap errors