The autocomment when voting to close feature says:
Once the question is closed (even if it is not closed as a duplicate), these comments are deleted and the duplicate information is automatically edited into the question itself.
I'd suggest to check if a comment was edited, before deleting it this way. Sometimes I dislike the standard message and add additional information to it ... but unfortunately all I wrote gets deleted.