Fix properly how connections should be handled in curl...