Fix RestClient connection leaks when it throws ClientException upon server throttle. Enhanced JUnit tests for RestClient retries.