fixed unexpectedly closing of client before joining a room