If batteries run out, connect a power bank to the USB port to temporarily power the lock and regain access.
eBay