If you MUST carry a bear defense weapon, Bear Spray would be more effective then a handgun.  Just as much range, proven effective, and easier to aim when you are pumped up on adrenaline.  Read up on some of the hiking & backpacking forums, and see what other's suggest.   
KillJoy