On Android, swipe up from the bottom of your screen, and swipe up again on the Pandora app. On iOS, swipe up from the bottom of the screen; swipe up again on the app to close it. On Mac or Windows, click the X in the upper-right or upper-left corner of the window.
here is a detailed article on how to stop spotify from running in the background https://spotipremiumapk.org