only close open file