close session file as soon as possible when retrieving files, to increase i/o

block some bandwidth-zapping bots from scraping sites