rescue the connection initialization and retry