Kill upload on failure

this feature branch improves error handling for backend connections. Specifically, it adds more logging, and breaks out of the loop whenever there is an error sending a result file.
The exception string must be separated from the error text so that one could understand what it is exactly. 
"[...] %s for URL [...] should be "[...] \"%s\" for URL" or otherwise separated with commas.