Fix a bug that causes n7 to block forever when connecting to a host that doesn't exist.