Are you saying flies are coming out of the white worm culture? If so then files must have laid eggs which I assume turn into maggots. If so do something about the compost or whatever is harbouring them. Or have I missed something here like you have Isis flies sneaking into your fridge at night and boogie trapping your cultureI put my white worms in my fridge for 24 hours. (I have a special refrigerator in my man cave just for my fish (Beer).
The next day I didn't see any flies, but two days later the flies were back, only now they had on bomber jackets so the fridge thing may not work again.
I would imagine I could keep the worms in the fridge but I doubt they would multiply in there so I am looking for another way to eliminate them.
I know the worms live for five days in salt water so I may flood them for 24 hours and see if the flies survive. I may end up with a stinky mess so if I do.
(I had to delete the last sentence as it may not be PC and I don't want the Mods to sneak up to my house and put a bag of dead sea cucumbers there, light it on fire, ring my door bell and run away. Then take away my Excellence banner)