Try to ensure that device.txt is closed and that Portaudio and Portmidi
have released their resources...