I had a 2005 997S Coupe.
1 month before CPO expired I had IMS failure (Catastrophic engine failure)
This was a flaw in late 996-997 models that Porsche never owned up to.
Luckily I got a brand new engine from Stuttgart and my world was full of beauty once more.
If you do get one get model starting from 2009 and up. Unless of course you want to go air-cooled.