Improve HTTP hangup detection. Also, exit the iterator when hung up on.