My guess is that the server is only waiting 10 seconds for the handshake to be acknowledged, and then dumping the connection. In this case, the combination of normal PLC work + HandshakesAreHardWork is taking longer than that.
You might try turning off the certificate validation. That might reduce the time a bit.