logcache: cleanup connections
fixed js error