You can close all tabs on your iPhone at once by holding down a single button in your Safari browser. Here's how to do it.
Closing iPhone apps generally isn't necessary, but can be useful if apps are misbehaving. Here's how to do it on any iPhone model.