add on disconnect logic server side