Code gets stuck on the last note of the melody after being played

Oh I just put that as a cautionary measure. I can probably just remove that message since pressing the push button more than once doesn't affect anything.