a close shave/call

a close shave

 and a close call
a narrow escape. (See also .) Wow, that was a close shave. I thought the guard would spot us. The speeding car passed only a few inches from us—a real close call.
See also: close, shave

a close call

or

a close thing

COMMON If you describe an event as a close call or a close thing, you mean that someone very nearly had an accident or disaster, or very nearly suffered a defeat. `That was a close call,' said Bess, as the boat steadied. It was a close thing and, looking back now, I have no doubt that if my friend hadn't acted so promptly, I'd be dead.
See also: call, close

a close shave

If someone has a close shave, they very nearly have a bad accident or very nearly suffer a defeat. It was a close shave — if I hadn't been paying attention we could both have been flattened. McGregor had a close shave when a 7ft polar bear ran at him while he was filming a documentary about the animals in Canada. Gingrich had a close shave in the 1990 general election.
See also: close, shave

a ˌclose ˈshave/ˈcall

(informal) a situation where a disaster, an accident, etc. almost happens: We didn’t actually hit the other car, but it was a close shave.Phew! That was a close call — she nearly saw us!
See also: call, close, shave