The door may immediately unlock. Front loaders have a locking mechanism to avoid opening the door during a washing cycle but occasionally this lock will be activated accidentally. The door lock can fail either mechanically or electrically.