zk history writer: less verbose zk error logging

* Do not log stack traces for connection losses.
* Use CONNECTIONLOSS instead of APIERROR in test for less spam in logs.