Made the juce demo clean up in the right order when quitting, to avoid problems with the GL demo.