Contagion and Volatility with Imperfect Credit Markets