Handle write errors from gnutls
Update test client to work with recent change adding CA filename