Handle ECONNRESET as well as ECONNREFUSED failures.

* Generalize re-raising exceptions
* Handle both exception types.