log errors to error.log when crawling closes #378