close call

noun

1.
something achieved (or escaped) by a narrow margin