Try to fix logout on refresh issues.  [Fixes #144]