If your phone shuts down, the BEST route is ATT warranty replacement. Supposedly this is not an issue with more recently manufactured phones.
If you bought your phone new (not refurb), and it doesn't have physical phone or battery damage- att will replace with no problems for 1 year after...