fix client disconnect crash