When there is no valid connection left, don't retry the request but throw the real error.

This pull request is related to #448.