at the eleventh hour
в самый последний момент
Aunt Maria was in a great hurry, and she remembered to lock the door at the eleventh hour.
в самый последний момент