The corpse recovery code is actually transporting the person to the room where the healer usually sits. If there's no healer there, then it's just another empty room. Until level 10, dead players have their corpses transported to the temple with them. This makes it easier on them at first and gives them a chance to get used to the game. After that, devotion to a deity is possible and they should seriously consider that since death past level 10 means the corpse stays put, but the victim is transported to the temple.
If this wasn't what you were looking for, let me know