You handled that as you should have. Having a gun to defend yourself conjures up romantic visions of the past, but is really only a tool to keep you safe. You did just that and have not put yourself in any legal jepordy either. Now I know there are people that will say it's your castle and your right and on and on..., but all it takes is a liberal lawyer to make your life hell.
live on to fight another day