added exception handling to reading pcap file