rrd_client.c: explicitly close the connection on error in