Close shave has 2 different meanings across 1 category:
Noun
something achieved (or escaped) by a narrow margin
A shave that is very short or near the skin.