Minor fix for Client TCP socket closing error.