Fix minor hang and crash
Fix hang when launching with invalid config, and segfault when quitting with Quit button.
The fix for the segfault does fix the problem (and doesn't trigger any errors in Valgrind), but I don't know the spice library well enough to know if this is the correct order to destroy resources in.