Very good points! Preventing these encounters is the best thing you can do. Number one thing with bears is don't have any food on you.
My dad was solo backpacking in the California back country and thought he had stashed all his food in a sack hung from a tree, but forgot about a granola bar in his pocket. He had a dream a bear was licking his face and when he woke up, a black bear was licking his face. He felt around his pockets, found the granola bar and threw it, and the bear went after it and then left him alone.
I have no doubt he wouldn't have survived if it had been a hungry Grizzly.
Unicorn Goth.