Improvements to changes in PR#364. Ensure withdrawn items are still exported to CSV. Improve error logging on export.
Merge pull request #421 from tdonohue/DS-1733-improvement

DS-1733: Improvements to changes made in PR#364.