Can you qualify that response?
If the PC isn't grappled it can climb out.
If it has freedom of movement, it can't even BE grappled.
Then again, I'm thinking of coupling this little trap with a dispelling screen to hopefully end any freedom of movement, levitate, or flight spells.