Thanks for all the suggestions. To keep the size down, I might investigate building something myself based on a small timer chip and mains relay.
V
PS The only other thought I had was whether anyone makes what I want as an electronic night light for children that, like a candle, goes out...