Don't crash if another dialog is added while finishing.
Merge pull request #133 from unknownbrackets/ui-tweaks

Don't crash if another dialog is added while finishing