I’m not sure I understand your situation. Are you saying that music keeps playing and you don’t know how to turn it off? Have you pressed the “x” key on the keyboard (if you have one)? Or, have you restarted Kodi?