I had a spare (new) thermocouple & replaced this straight away. With the boiler switched off (unplugged) the pilot stays on, so I assume the thermocouple is working OK. The pilot does go out the same time as the boiler closes down (with a loud click). I thought that this was due to the overheat...