bug978990 - remove window event listener during login, logout
move closer to events
0.0.23