SI-7350 Close all pipe threads when destroying a PipedProcess

This is a fix for issue 7350