close fd, close dir, recv