a pop up box in the apps to show with "Are you sure you want to logout?" OR "click close to close this apps"
Current apps, user that keep tab on "back and back for several time the apps will close/logout.
Take a look at this. This might be a solution for you.