Hello there and welcome to BYC!
Oh, I am so sorry you lost both of these hens. I am sure if one of them had worms, so did the other. The only way to truly know what killed them is with a necropsy.
Are you going to get more birds? It must be very hard for you right now, but eventually you...