refs #4305 current implementation of better exit workflow, wanna try a simpler solution tmrw
refs #4305 actually this seems to work but have to do many more tests
Merge pull request #5319 from piwik/4305

better exit workflow for Android handheld users