I once had a Wizard character sinking in quicksand and I couldn't pull myself out. My party members were too far away to get me out in time, and I was in real trouble. So I cast Web, and got myself stuck in my own spell so I wouldn't sink any farther. The rest of the party arrived a couple of rounds later to haul me out.