pcap_close after pcap_open