As was said above, usually pressing the "E" button (if you are not wearing wings, that is) you should be able to find your way out. If you are stuck, however, and unable to get yourself out, you can always send your character home. I will lock this now, since the issue has been solved.