Log connection errors.