spider_opened and spider_closed are the old method names.
Change them to open_spider and close_spider