Bankruptcy in the life-cycle consumption model