First of all, it would be more natural if you rephrased the sentence like this: While I was walking, it started raining unexpectedly . In order to avoid getting wet , I just went into a shop for a while.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.