Don't shadow "destroy" method.

Fixes #11135.
Merge pull request #11175 from terminalmage/issue11135

Don't shadow "destroy" method.