I recently bought a certified preowned S5 from T-Mobile... mine keeps doing this too. from playing jarrasic world or angry birds, being on Facebook, or Spotify...
i always close my apps so i only have one or two open at a time. All my apps are from the Google play store, and they are apps i used...