Also included in this pull request; a better session logging option that detects for the implementer when the app is closed and opened.