The passcode then changed, closing the door and trapping him inside