SERVER-8864 Fixed recv exception handling in httpClientTest and web server