Close logs after rotating