Steps to reproduce:
1. Due to some reason (corrupt media package, server proxy setting problems, or other) the capture agent fails to upload media package.
2. Continues to try, failing every time
3. thousands of directories are created on the server causing further problems
Workaround (if any):
There should be a hard limit to the number of retries the capture agent will do.