The lid should contain it, though it might get out the holes. I did have a big flatworm (looked like a polyclad but was shrinking, so evidently nothing in my tank was edible to it) escape from a cup I put it in. I floated the cup in the tank to keep the temperature stable so it wouldn't die, because I wanted to possibly rehome it, and it got right out.