d6cb1cc5d720f53812bf6bd34ca529a8c109d3f6
angie
  Thu Feb 14 12:54:13 2019 -0800
hgTables was calling too many things that called popWarnHandler after hgPositionsHtml.  refs #22945

diff --git src/hg/hgTables/hgTables.c src/hg/hgTables/hgTables.c
index cc0d195..2d70c1a 100644
--- src/hg/hgTables/hgTables.c
+++ src/hg/hgTables/hgTables.c
@@ -1805,32 +1805,31 @@
 if (lookupPosition())
     {
     if (cartUsualBoolean(cart, hgtaDoGreatOutput, FALSE))
 	doGetGreatOutput(dispatch);
     else
 	dispatch();
     }
 else
     {
     struct sqlConnection *conn = NULL;
     if (!trackHubDatabase(database))
 	conn = curTrack ? hAllocConnTrack(database, curTrack) : hAllocConn(database);
     webPushErrHandlersCartDb(cart, database);
     mainPageAfterOpen(conn);
     hFreeConn(&conn);
-    webPopErrHandlers();
-    htmlClose();
+    cartWebEnd();
     }
 
 textOutClose(&compressPipeline, &saveStdout);
 
 if (doGenomeSpace())
     {
     if (gsTemp)
 	{
 	cartSetString(cart, "gsTemp", gsTemp);
 	char *workUrl = NULL;
 	startBackgroundWork("./hgTables backgroundExec=gsSendToDM", &workUrl);
 
 	htmlOpen("Uploading Output to GenomeSpace");
 
 	jsInlineF(