Add more logging (and error handling) to client-side pcap