I don't know exactly when and how, but when importing MIDI tracks in NWC the last note sometimes is missing.
I need to investigate...
Got it!
If the last note is tenuto then you have note off immediately followed by "end of track".
When NWC imports the MIDI data, the last note is ignored.