We've had cabinet doors come open in transit before. Had the refrigerator door come open too. No eggs on the floor, and fortunately, we had 1/2 gallon milk jugs in the door, not the shelf. Still, was a mess.
We consistently use bungie cords on all the cabinet doors now, and I found a way to put a small bungie on the refrigerator too. And now the rule of thumb is... never leave home without it! (the bungies in place).
Sometimes, thing just happen. How we handle life's unexpected events is the true test of our character. Frustrating as it may be, sounds like you passed this "one" with good graces! Congrats! Strike another experience under your belt!