A Theory of Risk Pooling and Voluntary Liquidation of Firms