Added destructor with appropriate logic to CSpider, added fclose to main().