Had that happen with some live rock I had shipped, live rock usually sits around for a day or two after collecting and bugs get attracted to the dying critters, lay some eggs and you get gnats and flies when you get the box. Freaked my boyfriend out pretty good, he called me at work when he opened the box and saw bugs.