Glad it turned out OK. I've also had a number of nasty incidents. Fortunately, I've never been hurt and have never had to hurt anybody else, although I was ready to do so, as you'll see from the summary below.
1. Armed robbery attempt (Baltimore City, MD, mid 1970's). I didn't have a single penny on me and eventually talked the guy out of it.
2. Handgun assault (Columbia, MD, 1970's). Disgruntled employee pointed gun at me from a car in parking lot. Didn't fire, just wanted to scare me. Police were not very interested, despite his drug possession record. Said the guy would probably not get prosecuted for anything more than misdemeanors and would quickly get his gun back. At least he got fired.
3. Two "hot" home invasion burglaries while a college student (Baltimore City, 1970's). One got away with all the goodies. The second guy, a couple of years later, wouldn't leave until I told him I had a shotgun. He decided to leave.
4. Two "cold" burglaries. In the first one, (Pikesville, MD, late 1970's) bad guys entered the roof of the apartment complex and kicked holes in the ceilings of numerous 3rd floor apartments. Heavy metal door, steel door frame, masonry wall and 3 inch deadbolt were easily bypassed. Police, who were investigating burglaries these guys had done earlier in the morning, found these guys still at it. They shot and wounded one of the two suspects in a gun battle on my doorstep while I was at work. In the other burglary, (McLean, VA, 1982 or 3) a daring guy climbed up the OUTSIDE brick wall, 3 stories up onto my balcony where he gained access through the unlocked balcony door (protruding bricks, intended to make a nice visual design were used as hand and foot holds). A cheap burglar alarm my wife had won in a contest scared the bad guy away.
5. Nasty encounter with a homeless guy at a fast food place (Fairfax City, VA, late 1990's). After he vandalized the place by smashing a large pane of door glass, I found myself between him and the bathroom. He must have had to go. He growled at me, didn't like the way I was looking at him (I prefer to think of it as my cold steady stare.) Had he taken another step toward me, or displayed a weapon of any kind, I would have drawn the SIG P239. Instead, he walked across the street to another bathroom. 911 fire dispatcher answered in seconds, and stayed on the line with me for an hour, but Fairfax City police took 45 minutes just to answer their phone, and another 10 or 15 minutes to arrive on the scene. Guy was long gone.
6. Two car jacking attempts. In the first, in gun-unfriendly Baltimore, MD (late 1990's), I had no choice but to run down the two thugs trying to take my car. They jumped out of the way. Since they hadn't hurt me, and I hadn't hurt them, Baltimore City police declined to respond. Wouldn't even take my name or file a report. In the second attempt, after midnight near Yorktown, VA, (2004) the leader of 4 thugs trying to get my nice new Lexus SUV (still had temporary tags) saw my handgun in its holster and broke off the attack.
7. While on the way to Tae-Kwon-Do class (Fairfax, City, VA, 1991 or 2), my then 6 and 8 year old kids ran ahead of me. A gang of teenagers had cornered them and were taunting them as I came around the corner of a building. The sight of an adult, all dressed up in the martial arts uniform, including brown belt and carrying a practice weapon (basically a long stick) was more than they could handle. The gang leader got real sweet and apologized all over himself for a few seconds, then the gang scattered.
Every one of these 10 incidents has quite a story to go along with it. Of all 10, the only bad guys who got caught and prosecuted were the two Pikesville, MD burglers. Pulling a gun when you're surrounded by police isn't a great idea. Even though they got convicted and sentenced to 10 or more years each, they probably didn't serve all of that time.
I've learned to practice often, think about bad stuff that might happen (no that's not paranoid). Police sometimes can't, or sometimes won't, be much help. No knock on police officers, most of whom I believe to be trying earnestly to do a good job, but are working in a system that is far from perfect.
Most importantly, I've learned to carry a gun whenever I can and be responsible for my own safety. Typical sidearm these days is a SIG P-229 in .357 SIG and one or two spare mags on my belt and another couple of spare mags in the car. If I can't carry that due to dress limitations, I carry a SIG P-230 in a pocket holster.