Should not crash if the dialog fails to dismiss.