Government officials feared that a panic might occur if AIG could not make good on its promise to cover losses on the securities.