Added endSession()
Merge branch 'master' of https://github.com/taivop/xse