It does last forever, so long as you do not move your aim off of their hitbox. There are other ways to cancel it, like typing, but that's just stupid. Still, yes, as soon as you move your aim off of their hitbox, they are set to get out of the grab, even if only momentarily before another grab.