check observers.logout, not onlogout

fixes #4067
Merge pull request #4068 from seanmonstar/hotfix-4067

check observers.logout, not onlogout