Well. That is not much information. If your phone died in 40 minutes it was not a 100 percent charge or you have a BIG problem.
Nvm I fixed it.
The problem was it was trying to delete my contacts from my e-mail, using the app delete contacts from the market, that it was synced up to. There were too many to delete so it got stuck in an loop...