Fix connection leak