Added option to data_object_file to close file descriptor after full read