Fixed Exception on first visit to the app.  No longer write errors in the logfile on logout.