Any port in a storm
This expression obviously derives from a literal, nautical expression, but it is first cited as a metaphor, meaning any place of safety will suffice when one is in trouble or danger, from the mid-18th century.