remove elements and optionScopes on destroy