OC-3097:(fix bug) When the connection is lost during a download, app thinks that the download is finished