ah - maybe the juce event handler’s intercepting the close button event. The culprit looks like it might be in juce_mac_Windowing.cpp, line 1080ish. Try this:
[code] case kEventWindowClose:
if (isSharedWindow)
break;
handleUserClosingWindow();
return noErr; // (returning a notHandledErr would cause the OS to delete the window itself)