Can you take a poop sample to a nearby vet for them to look at under microscope? If it was perhaps a fly maggot, then you have no worries at all. If it's not a fly maggot, then the vet will identify exactly what parasite and what treatment, if any, to consider. Dying from a worm infestation...