...
If only one exception is thrown, either during opening, processing, or closing of the files, the exception will be printed after "thrown exception:"
. If an exception is thrown during processing, and a second exception is thrown while trying to close either file, the second first exception will be printed after "thrown exception:"
, and the first second exception will be printed after "suppressed exception:"
.
...