Store last exception and raise it instead of the "Unreachable host"
exception