The code looks ok, but if the music doesn't stop then the problem is somewhere else. Did you try to read and run the examples from Aum63's workshop? Most of the code that you need is in there.