close opend file.