Any other way to intercept the function call and return the `econnrefused`?