kill child before closing it's pipes