added error checking to downloading: #MSG-239 fixed