Remove autogenerated files.  Close pipe file descriptor to avoid leak