[AS7-6913] call closeAttachments after the operation completes