Force logout on community app on tab/window close

MIFOSX-1320
Merge pull request #954 from tchale/develop

Force logout on community app on tab/window close