fixes #4822

destroy control first, if exists