Protection of the endoscope