As some others suggested changing your batteries more often should help since you already have the electronic lock. It sounds like the gun you use for HD gets locked in there on a daily basis and probably left on your nighstand or something similar every night. I would just add a good quick access handgun safe and bolt it to something solid. You already have seen what happens when the electronics don't work as planned, so get one that uses a mechanical push button lock. Here's mine
http://www.fas1safe.com
FAS1 SAFE Video