It's true, you know. Every time a bullet is fired from your defensive firearm, whether it be willful or negligent, there is at least one lawyer somewhere that will want to know why; and often there is more than one lawyer seeking that answer.
I said negligent be design, because there is no such thing as an accidental discharge of a firearm. If it discharges without the person in control of it at that time, one or more of the basic gun rules was violated; and if that bullet destroyed property or injured someone (or worse), there will be at least one lawyer wanting to fix blame and get restitution. Don't find yourself in that position!
Regardless of the version of basic gun rules to which you subscribe, make sure that you follow them! If you do, there should be no way you would find yourself in a legal quagmire. No gun will fire if it is properly stored, or your finger is not on the trigger. When it is fired, if the muzzle is pointed in a safe direction there should be no problem. If you are in a justifiable defensive situation requiring lethal force and you fire on and hit the cause of the threat, you'll still meet lawyers, but at least you should be reasonably safe from prosecution; however if you hit something other than that target, your life can become a legal nightmare.
Follow the gun safety rules. Avoid a negligent discharge.