Learning lessons from sunk costs