I don't think that it is necessary to have `tryFailConnect` in this assignment. By nulling out `onFailed` at the end of this function, you are causing `tryFailConnect` to noop anyway and actually return false. `$.noop` does not return a value.