modify close_fds logic
deflake; check API compat