Cannot quit app made with Juce

I am using JUCE 7.0.5 and created a small app for Mac.
It displays an icon (system tray icon) on the top bar.
I want to right click on the icon and choose the from a dropdown the option Quit.

I am displaying a native popupmenu using:
juce::SystemTrayIconComponent::showDropdownMenu() and trying to quit after a menu item click using juce::JuceApplication::Quit it will not quit until I click again the system tray icon.

This seems like a bug because when I set it to right click and immediately quit it works (without going to select the Quit option from the drop down)

Any help will be greatly appreciated!
Thank you

as a workaround this i used the system command: killall myappname to quit the app.