I always clean the mash tun right after sparging is done. I just dump them into a big pile in the woods behind my house then hose it out. I've got a good habit of cleaning everything as I'm done using it.
Normally I clean during the boil, but I was teaching a new home brewer about calculations and just moved the mash tun outside and forgot about then went to bed. But yes sealed in the tun for two days is a horrid smell. Never again.