Use openconnect_open_https() and openconnect_close_https() better.