check for fail state of the connect method