I just had a refurbished phone sent to me because my iPhone5 was having another data leak. Now the replacement is operating on iOS7 and it has shut off randomly for 5 to 10 minutes three times in three days. I'm going to contact technical support again and ask for another replacement.
it's not your phones. it is the update. their are lots of discussions at apple.com about this.