added closelog