Ensure resource is closed

Closes #3558536

Merge request reports

Loading