How to handle ofURLFileLoader: handleRequest(): Connection refused

If the server in ofLoadURLAsync is not reachable then call will constantly fail with the following error. The callback handler is called repeatedly. How should I handle this?

For now I am using ofRemoveAllURLRequests() and ofStopURLLoader() in the handler to stop it. However, I would rather cancel only the failing request. Perhaps the request should not be retried and this is a bug in ofURLFileLoader, if so I can try to make a patch.

[ error ] ofURLFileLoader: handleRequest(): Connection refused
[ error ] ofURLFileLoader: handleRequest(): Connection refused
[ error ] ofURLFileLoader: handleRequest(): Connection refused
[ error ] ofURLFileLoader: handleRequest(): Connection refused
...