go client, check connection after writes and reconnect