close fd in ioserver