Modified implementation upon socket disconnection (user status retains unless last connection is closed)