Added silly exception handling to retry upload on socket errors