I think Bricol's got it. I had another play this morning and had the same problem initially. Having turned off the master switch the engine kept running, even when I then turned the ignition switch off. I turned the master switch back on and then the ignition key worked when used to switch off. I then had a bit of a play with the alternator wiring but everything seemed to be alright. On all subsequent tests the car switched off immediately on the master switch. I noticed that the alternator whine mentioned in post #5 had stopped and decided to check the battery voltage to make sure it was still working. I seem to have killed the new alternator. What I think has happened is that the master switch resistor has failed which led to the failure of the original, old, alternator. Having fitted the new alternator I checked that I was getting an output, which I was. Having stopped the car on the master switch a couple of times the new alternator started to whine. Later in the weekend the car exhibited the running on issue for the first time. Thinking it was a switch issue I changed the master switch, but not the resistor. The problem seemed to go away but soon returned. Now the new alternator has failed the master switch is working just fine. All of this, to my mind, points to the resistor. I've just got to work out where it is so I can change it for the one that came with the new master switch.