Handle connection errors in log call. Closes #9