Set open_timeout back to 999 afterwards http get
clean up thread code