I have some very valuable firearms that stay in the vault, simply because I don't want them getting dinged or scratched up. But let's be real. It is extremely unlikely that you are going to need to use your handgun against someone in a defensive situation. If a worst case scenario occurs and you do need it, you are going to need it very badly, it absolutely, positively, must work as intended, and you must be competent with it. Speed, power, and accuracy will determine the outcome of a lethal force encounter. I have always endeavored to carry the firearm that will best get the job done for me. That means it is dead nuts reliable, and I can hit with it. For that peace of mind I routinely carry pistols that are well north of $1000. If it were to be taken as evidence, I will eventually get it back, and I have others.
On the other hand, if your use of the gun was a crime, having your gun taken is the least of your worries.