Apple Music app Auto Launch?

I have KS 10s and an iPhone X. Every time I “wake up” my phone, it automatically launches the Music app. Same thing happens every time I hang up on a phone call that has been streaming thru my HAs.

I’m guessing it’s because my phone thinks I’m plugging in headphones and there’s a default setting on the phone to automatically launch the Music app whenever it senses that headphones have been plugged in.

Any idea how I can stop this? Thx

When you quit listening to music, kill the app.