check connection error