close file when send file done.