Close the read end of the error pipe after the build