User Open3.capture3 instead of Open3.popen3 (deadlock issues)