track session ends