The role of the exchange is to facilitate orderly markets by reducing counterparty risk. My knowledge is more stock market than commodities but normally they require collateral from the brokers so that they can recover from the broker, but ultimately they would be on the hook if they failed at their risk management. In reality though we know the government would not let a major exchange fail so there's also that unwritten rule.