diconnect client properly