This ensures that these resources are properly closed, even with an exception.
Attach a file by drag & drop or click to upload