Add write_* config vars to config_clientagent test.
NetworkClient: Add error message to receive_disconnect.