One good lesson to take away from this is to practice with your home defense gun configured EXACTLY as you normally have it set up.
Practice with the same ammunition. Practice with a light in place if you use a light. Practice with a separate light if that's how you plan to defend your home. Practice with high capacity magazines if that's how you normally have your gun loaded instead of using your 10 rounders at the range. If you leave your gun chamber empty then practice starting with the chamber empty each time you begin a shot string when you practice at the range. If you have a gun with a safety then practice disengaging the safety EACH time you bring the gun up to fire. If you keep your gun in a case then practice taking the gun out of the case.
NEVER assume that a gun will be reliable in a particular situation or configuration until you've tested it under the same circumstances--or at least as close as you can get.
Little things can bite you if you're not careful. This thread is one example, another that I have personally encountered is using the Hogue slip-on grips with an H&K USP. If the slip-on grip slips too far up on the pistol grip frame then it can slide under the magazine release and prevent the shooter from dropping the magazine. That's the kind of thing you want to discover at the range and not during a self-defense encounter.