Fixed portmidi._terminate().