Revert "use local socket pair to handle the case of all network interfaces are down."

This reverts commit d2f8e181b6cefb36250e3d9a1baadfbb016e108a.
Revert "break poll loop if socket is invalid."

This reverts commit bd6a2aa0b8c38470e25ecd08ab44db7c4b598b61.