Detect MIDI device connect / disconnect?

See this thread:

Rail