end stdin on ctrl+d/ctrl+z for windows. satyr/coco#204

courtesy of satyr.