Implemented connection_error callback