connection error protect