Ensure any output written is fully cleaned up to prevent downstream retry tasks from failing
Merge pull request #2 from mortardata/ddaniels_ensure_close_cleanup

Ensure any output written is fully cleaned up to prevent downstream retry tasks from failing