workaround to make Linux client work again (broken pipe problem)