Crawler manager should close database after completing crawl tasks.