I'm thinking it's about the general feeling of restlessness and frustration. Trying really hard to get out of something (an obligation, or a box, or a cage, or something of the restrictive nature). Thrashing about as it gets harder and harder to stay patient. At the end, he runs out of energy, calms down, and resigns.