we have to call to notifyFinish function when the chunk has been finished