stopNotes() stops the internal synthesizer, there is no need to call it for JACK MIDI.
Sending sustain off only for JACK MIDI is my mistake. I've already deleted this line (671) in my current dev. version.