The collapse of carbon-oxygen white dwarfs