connect: Handle all host failed to be resolved