Make upload more robust to random errors with retries
Release 0.4.1