Yosemite doesn't usually close except for rare events like flooding. The valley will remain open through the winter. It's just the road over Tioga Pass that closes with the first snow since NPS doesn't plow it. Actually, winter is my favorite time of the year there. Snow (hopefully) blanketing the mountains and the valley floor and fewer people. Many fewer people.