Ensure we're connected before accessing the pointers.
Cleanup QMidiOut.