Fix for scenario where an error is thrown but there is no response (such as the target rest service being unavailable)