close session right before the download starts - this enables parallel downloads