I read this novel roughly about 25 years ago. What I remember is that the protagonist was a mass murderer and he ended up on a planet on which the civilization was gone, but their buildings and machinery remained. I remember he used one piece of machinery to generate his dead wife to talk to. I remember the planet was enshrouded, making it difficult to be spotted by starships. And I remember a military starship spotted the planet anyway, and landed. The Captain of the starship was female.