Is it just pausing the music or does the app have an error? Are you using a bluetooth headset or a corded one? It sounds like the headset could be disconnecting in some fashion (either bluetooth or a short in the cord) and the phone is pausing the music due to this. Try another headset and see if it happens.