Flush the output queue when a JACK client connection is going to be closed.
Update midiout2 provides a virtual output port (not input port) ;-)