riddle: I close up the walls that hold out cold weather

My first is a letter and an insect that flies.
My second starts understanding but also unwise.
Third and fourth, a letter that’s also a drink.
Next, a vowel you say when surprised.
My last is in blinking and winking, I think.
Now gather my parts, close them together,
Like I close up the walls that hold out cold weather.
What am I?