Catch OSError when pcap file has been read by another process