On some systems the system call can fail without setting errno.  On
close, check if the log_close_fh needs to be closed also.