To reproduce:
0) Make note of your gold amount
1) Enter a dungeon
2) Pick up a gold pile
3) Retire
4) Restart
5) Retire
6) Observe that your gold amount has not changed
If you took any preparations, you are still charged for both runs though.
Advisor Task progress for the first run also seems to be discarded.