[Azoth] Fix segfault in Xoox on leaving.

If both "leave on close" and "close on leave" options were active, Azoth
tried to leave the room twice, and Xoox just couldn't bear it :(