On I/O errors when opening a file, use wtap_close() to clean up, to make