单项选择题

That tragedy distressed me so much that I used to keep indoors and go out only ______ necessity.

A.within reach of
B.for fear of
C.by means of
D.in case of