catch a connection error