Add error callback functionality

Note: this requires https://github.com/mudcube/MIDI.js/pull/112