Preventing user with same nickname, detect disconnections and server down