If the lock box is hanging in a vertical position and the front door remains open, it will not lock.
However, if the front door’s prongs (A) touch the inner locking mechanism (B) - which happens easily from a horizontal position - the box may register that action as having closed the front door.
To fully close the front door if it has locked while open: