Catch against max depth errors
Merge pull request #13 from gjtorikian/limit-depth

Catch against max depth errors