Close window after log out
Bugfix: write in actorsMap before initialize