Better server closing (logout all users, etc.)

A client cannot connect to an already connected user.