simplereciver close file safely