Fixed issue with the client server not terminating when failing to connect to the name server