Close device after all chunks have been read.