close logs