do not try to write from JackMIDIPort::write() if we are disconnected from JACK....