add management of user disconnection