Cleanup pod directory when download fails (probably due to a network error)

Fixes #1482