Large stonefly nymphs sometimes crawl quite far from the water before emerging.  This empty case is from a nymph that hatched about 5 feet up in a tree 10 feet from the river.