connectFailed modification