systemRequestedQuit not run when exit windows

I need to save standalone juce application state when user is exiting window.when application is running…
I have void systemRequestedQuit() override

but systemRequestedQuit does not seem to run when Window is exiting, or when I quit application from task manager, I think it should…

What could I be doing wrong?
I have JUCE 6.0.4

When you kill an application via systemRequestedQuit there is no way afaik to react.
Since your nick is debian, I guess you are aware of the kill signals on POSIX systems.
It seems that the SIGKILL from the task manager cannot be caught:

But afaik JUCE has nothing built in for that scenario.