I did very similar once, when fitting a new door in our bedroom.
I had the door hung, fitted the new catch in the door and plate in the frame (though, critically, had not drilled the hole for the spindle). Went inside the bedroom and shut the door to make sure it fitted and, as I heard the...