FYI, crustaceans will occasionally, loose a limb, or segment of a limb, when they molt. When a crayfish/crab/shrimp grows, the flesh will wrinkle beneath the carapace. Since the outer shell is hard, and cannot expand, this creates pressure, and initiates the molting process.
Once free of the old shell, the new outer surface expands, like a balloon, and hardens. If a portion of the soft flesh does not freely detach from the carapace, the flesh is easily ripped from the invertebrates body. This is due to the delicate nature of the flesh, and the rapid and violent nature of molting.