Added helper func to get chunks for a file.
Fixed close to release lock. More delete.