IPhone 4 shuts off by itself

Hello,
I am facing a problem with upgrading my iPhone 4 to iOS5.
The problem is my phone turns itself off randomly. Along with this it also damages the Bluetooth connection with Ford Sync in my car that made me fed up.
Can anyone give me a suggestion? Help will be highly appreciated.
Thanks.
