Fixes #5415 - Fixed problems with cv destroy commands