Just a suggestion: Never hit a socket wrench handle with a hammer. The wee little pawl in the wrench that flips it from right to left is not designed for that type of impact. You can easily sheer it. Plus there is a lot of bounce when you hit.
If a nut/bolt requires that kind of force either use a socket with a break over bar or a box end wrench with a cheater. If it is a bolt that is stuck, try hitting it sharply on the head with a hammer a few times. The shock will often loosen it.