actualClose can close fd while writing causing undefined behavior.
actualClose can close fd while writing causing undefined behavior.