add client connection error handler