Actually, my vote is on removing this closefrom business completely. If we can neither trust the function to succeed (as it is documented to always do), nor reliably check whether or not it succeeded, then we should not use it.
The assertion that a failed call will always succeed if you just try it again enough times is also highly dubious...