added logging around keepalive event