CO2 can help keep the eggs from hatching. FWIW, fresh fruit, like apples and pears, require oxygen in order to ripen. Commercial apple growers use "controlled atmosphere storage"- oxygen has been replaced with CO2 in the air in the storage rooms. Apples go to sleep. When you air out the storage rooms, they go back to ripening.