Saved By The Bell

Rescued from a difficulty or embarrassing situation at the last possible moment.

Examples:

  • I couldn't explain his absence any longer, but then Bill arrived and I was saved by the bell.

Origin: Mid-1900s, from boxing's end-of-round bell rescuing a downed fighter