close logging