By wearing a gas mask and protective clothing, closing doors and windows, and turning off ventilation, furnaces, and air conditioners.