Fix connection leak in SqlRun