remove reduntant WriteStream.end call on download complete