Assures test_midi properly checks for devices
Fixes regressions in OS X Midi impl

- Terminate works properly again