Fix http connection exceptions