I think you have to Pause music. After that, swipe from left to right to close the music app.
Of course, if you want to stop, you also want to close the app to avoid battery draining. If not, just Pause the music.
Hope this helps.
Best regards from Chile.