Working on client disconnection