- STUPID mistake from me in setting the waitcursor... - icons for UI got freed, without checking if it existed (crash in end) - call to close mainwindow didn't check if window existed note: I usually test the "blender -b" case, which should start blender, initialize all, free all, and print "blender quit" to signal all is fine.