Detect client disconnect

typo