I might be wrong but this is what I see going on in your circuit. To set the output high (the part labeled “To Ckt that energizes relay”), you need to set either pin 5 or 6 high to make pin 4 high. Once pin 4 is high, it also sets pin 8 high on the second OR gate. That in turn sets pins 10 and 6 high which is what gives you the latching effect. The problems I see are first, the LED that is connected to pins 10 and 6 will drive those pins high regardless of circuit state. Also, as for the portion of the circuit connected to pin 9, with the switch open, pin 9 will be high, with the switch closed, pin 9 will be low but pin 8 will remain high and in turn so will pin 10. The bottom line is as long as pin 8 remains high, it doesn't matter what you do with pin 9, pin 10 will remain high too. I’m not sure why those components are there. I could be wrong but would something like this not work (see circuit 1 in the attached schematic)? There is a momentary normally closed switch in between pins 10 and 6. I removed the LED and the other portion of the circuit that was connected to pin 9. When you open the switch pin 6 goes low and as long as pin 5 is low, pin 4 will go low too. That in turn sets pin 8 low and finally pin 10 goes low so that when the momentary switch gets closed again, the circuit will not relatch. It won’t relatch again until both inputs go high. Am I out in left field anybody? If I was doing this project I would also try out the simpler circuit shown in circuit 2. Let me know if you test out either one of these ideas and what happens.