fixes #3979 finish live visitors. stop timer when a user closes window or opens a visitor, resume timer after opening live visitors again