This simply stops anything which is being played by MidiSequencer, before playing the exercise.
With this, pressing the "play question" button in exercise view starts playing the exercise from beginning. Previously "play question" button did nothing if an exercise was being played.