TS-3097 Fix double free of SSL_CTX instances. This closes #126.