Updated to log fdopen failures instead of silently ignoring them