Does your mechanism have the setup I've seen, where a light is mounted on one rail near the ground, shining on a photosensor at the opposite rail near ground? These prevent the door from closing if anything obstructs it.
Is your door controlled by the same setup? If so, then you might attach some kind of opaque shield on the door, so that comes down and blocks the light at the proper moment.
I forget if it would also prevent a door from raising. If it does then you'll need to custom shape the shield, or cause it to pivot out of the way, or somesuch.