close pipes after exec external program is finished
update changes