Fix: Cancel doesn't crash the programm.
The cancel button should now let the dialog close without freezing the
entire application for ages