if the animal is allowed to survive after spinning its cocoon, it will make a hole in the cocoon when it exits as a moth. this would cut the threads and ruin the silk. instead, silkworm cocoons are thrown into boiling water, which kills the silkworms and also makes the cocoons easier to unravel. often, the silkworm itself is eaten.