IDE-1714 close new profile dialog wizard too fast cause dispose exception

...n
Nevermind I see the code now.