Fix spurious exceptions when remote http client closes conncetion