added close to logfile pointer