close shave vs near miss

close shave

noun
  • A near accident or mishap; a dangerous or risky encounter or incident. 

  • A shave that is very short or near the skin. 

near miss

noun
  • a miss which was nearly a hit or collision 

  • an attempt which fails narrowly; a performance which falls just short of a certain benchmark 

  • a scenario which ends safely but might well have ended in disaster 

How often have the words close shave and near miss occurred in a corpus of books? (source: Google Ngram Viewer )