Force logout on community app on tab/window close

MIFOSX-1320