fixed a bug in tsviewer.rake

If a user logged out and logged back in before tsviewer.com updated, it
would not close the previous session