Rename close to destroy

Rebased version of #1080

origins #724