Fixed http helper to not close connections immediately