Fixed issue where document pool is not cleared between requests.