refine create_ssl_connection errors