This can also be sorted by adjusting the door, as you go round the corner the door may move making and breaking the door switch. When you open the door the window drops and then goes up when you close it. If it makes and breaks the door switch, it will think that the door is opening and closing. Try the relays first, and then adjust the door if need be.