fixed logging out even if running
Merge remote-tracking branch 'origin/master'