It seems that the window Onclosing event is triggered before the addon Terminated state and before NinjaTrader.Core.Globals.IsApplicationExiting would switch to true. The Closed event doesn't even trigger.
The window hook returns WM_ message 16 in both cases. So I am out of options.
Comment