Well, it depends on the users and what they do. If they go into Chat and then exit and dont go anywhere else on the site, I have no way of knowing they left.
The who's online works by updating when you do something - it doesnt know when you "stop" doing something. So unless you go to do something else, it records your last event until the timer expires in 30 minutes.