Make sure there is no outstanding timeout when the sequencer is closed.
It handles decoding of MIDI commands, voice allocation, and translation it notes to frequencies.