re-init tcp server when encounter EBADF