Add connect and onConnectFailure to NetworkClient