Prevent the uploader from blocking/hanging due to bad exception handling

Prevent the uploader from blocking/hanging due to bad exception handling.

Specifically this changeset makes the uploader responsive again to user interrupts, i.e. SIGINT triggered by CTRL-C.