tools: fix unexpected connection loss not detected on Windows
tools: fix unexpected connection loss not detected on Windows

galek/crown,dbartolini/crown,mikymod/crown,galek/crown,galek/crown,mikymod/crown,dbartolini/crown,dbartolini/crown,dbartolini/crown,mikymod/crown,galek/crown,mikymod/crown