onEndTransferPieceOfFile method is now used.