failed:IO#close on an IO.popen stream sets $?
