Close logging fd