Endogenous Liquidity and Defaultable Bonds