close #172 operations with attachment in transaction