The door lock can fail either mechanically or electrically. The door may immediately unlock. If the door lock is damaged or does not latch properly replace it.