Finish the work of popen4 -> open3