add more checks to threaded download stuff. occasionally getting corrupted downloads.
add more checks to threaded download stuff. occasionally getting corrupted downloads.

jvelador/startupcantina,jvelador/startupcantina,dlobue/chef-solo-client,dlobue/chef-solo-client