ensure the cgi postdata write pipe is closed for other processes