Last resort gambles, risky debt and liquidation policy