Handle error when making request on closed connections nicely