For safes you of course keep it locked. But provide some hidden wires to power the lock if battery died. Of course you should think about protecting electronics from something like megavolt put on those wires, but it's doable and with enough iterations all weak spots should be fixed.