(close): Rename to do_close to avoid conflict with POSIX function of