fix server stop