Close dir when state is destroyed
Added DirCrawler depth limit, fixed dtor crash (investigate)