Added try-catch around processing MIDI file.