fix client disconnect server crash