Avoid pipe connection closing due to write timeout.