Fix a goroutine leak (or connection leak).