Handle Dialog creation errors

Cosmetic