This can be fixed in 3 ways.
1. Items held in 1 hand could be knocked from the hand if hit - problematic as people may end up losing items if server shuts down when being attacked or if item is knocked out of hand and ends up in inaccessible area.
2. Make pistols indestructible except for when shot with bullets and possibly when hit with metal tools.
3. A combination of the 2.