Check for errors on SSL_CTX_new and do not connect at all if TLS init failed
Do not call conn_handler if the user passed NULL