Added timeout to HTTP client to prevent hanging on bad connections