cocoon vs shut away

cocoon

verb
  • To envelop in a protective case. 

  • To withdraw into such a case. 

noun
  • The silky protective case spun by the larvae of some insects in which they metamorphose, the pupa. 

  • Any similar protective case, whether real or metaphorical. 

shut away

verb
  • To isolate (someone) in a closed-off area or room. 

How often have the words cocoon and shut away occurred in a corpus of books? (source: Google Ngram Viewer )