fix portmidi scheduler deletion