Fixed bug that would case infinite loop upon target server failure