That is a bit wierd. Checked any limit switches for correct operation and switching and/or any optical ones (fluff...).
Is that "open/close switch" an electronic one or a mechanical one that releases the mechanisum allowing it to be opened manually?
If electronic maybe the hardware version just drives the stepper motors the required number of steps ignoring (some of?) the sensors.