In some rare cases, you can get stuck in the hook state. This happens if the character's KinematicBody2D slides against the environment in such a way it gets stuck against a collider.
Possible solution: the hook state could use the raycast to "break" the hook if the character ends up getting stuck. We can also add a safety timer that sends you to the Air state after 1 or 2 seconds or upon getting stuck.