What conditions have you experienced, egg yolk peritonitis or vent prolapse?. Either way prevention is by having your laying birds on layers ration with premises to ensure strong and healthy reproductive system. Would be better if you describe the condition that led to the loss for clearer understanding of the case.