For some reason, that always freezes. Is it a 3G or 3Gs?
Whatever you do, don't update it. The newest update cannot be unlocked, yet. Also if you take it to apple they'll update it for sure. You've gotta restore it with the 3.1.2 softare for the specific phone you're using.