fix hang when upload fails
Merge branch 'master' of https://github.com/matteoserva/MegaFuse