fix server shutdown recursive broadcast; fix some code comments