check observers.logout, not onlogout

fixes #4067