Log then user closes or reloads chat window