fix error handling in pcapdumper / open