I think you don't need to do this if you  `removeChild` your dialogs in `teardown`