Cleanup: removed helper functions in pcapConverter
Throw an error if TShark exits with a nonzero code