Added error logging for thrown upload exceptions