fix delete host not closing automatically
Merge pull request #1311 from control-center/feature/CC-477

fix delete host not closing automatically