I currently have a Toro ZTR with a 15hp Kohler. The manual says to move the throttle between Fast and half throttle before turning off the key. The dealer says full throttle or at least 3/4 throttle. Now all my long life, I was accustomed to idling an engine before turning it off, but that's the wrong thing to do now-a-days. If you idle this engine and turn off the key, you almost immediately get a very loud, very severe pop. Lately, I've been sometimes (most, but not all the time) getting the delayed pop you described; 3 to 5 seconds after turning off the key. I just talked to my dealer about it day before yesterday. He says it will be the fuel shut-off solenoid sometimes sticking, but he also says it won't hurt anything (I'm not entirely convinced about that).
Incidentally, in 2004 I bought a Toro ZTR with a Briggs & Stratton engine. The solenoid never stuck on it, but you turned the key off at full throttle or you'd get a big enough pop to wonder if it would blow the muffler off.
So, my guess is that your friend's Cub Cadet has a faulty fuel shut-off solenoid.