trying to improve server stop