Attachment cleanup