Fixed potential http connection leak.