added closefile for detalied logfile