Exceptions which happened during openConnection and were not IOExceptions were swallowed by the task and never reported as a failure Result to the callback.
This fix makes sure that any exception will be reported in the callback as an IOException, so that the callback can handle it.
Exceptions which happened during openConnection and were not IOExceptions were swallowed by the task and never reported as a failure Result to the callback.
This fix makes sure that any exception will be reported in the callback as an IOException, so that the callback can handle it.