I generally don't let my animals roam unsupervised to where they would get caught in anything.
I suggest a little more care when letting the animals roam, I'm sure that was very stressful for him to be stuck like that.