Normally when you die, your corpse will remain where you croaked, surrounded by whatever killed you. To avoid this, after you die Save and Exit the game. Now your corpse and possessions can be picked up in the safety of the town.