My brittle does the same thing. If the star is able to pull the snail off the glass, snail always closes up and after a while the star gives up.
Sometimes the snail can't right itself though, because it can't get a grip in the sand. That's when they die and the star can come back to claim it's prize