Only one way out

You find a tree and climb up to the top of it. The dogs stand up on their hind legs, with their front paws on the tree, barking.

You take a look around and notice you are in an apple tree.