Correct closing logic of shareCircleServer.