Usually there is a warning that the battery is dying well ahead of it actually being dead. One that can send notifications will ping your phone with a low battery message. Others have audible warnings. You unlock it and then it starts beeping at you. It keeps doing that until you either change the batteries or it eventually dies. But you have to do a lot of ignoring for it to die on you. Many do have key backups too though. Just in case
Usually there is a warning that the battery is dying well ahead of it actually being dead. One that can send notifications will ping your phone with a low battery message. Others have audible warnings. You unlock it and then it starts beeping at you. It keeps doing that until you either change the batteries or it eventually dies. But you have to do a lot of ignoring for it to die on you. Many do have key backups too though. Just in case