Tweaked Melody again, this time making sure the sequencer thread ends
appropriately.