io: don't close if already closing in io_close_other.