Question: how long does it take for a worm to die?
Answer: The worms will die after 6 weeks so provided you do not swallow any new eggs then no new worms will grow to replace them. Strict attention to hygiene should be sufficient.