fixed EOFError due failed TLS negotiation