cleaning up clientmanager