Log commands sent
kqueue(2) can return EV_EOF with data still pending, do an extra read to avoid racing on the writer closing
Use /var/run by default as it is more proper for sockets