might fix the double logging off msg...
Merge pull request #13 from zacpez/raceCondition

might fix the double logging off msg...
Merge pull request #1 from ojourmel/master

merge ojourmel master