This also has change, use ```\OC\Files\Stream\Close::register($tmpFile,array(....));``` instead.