Close a pipe opened with popen.
@param stream The FILE pointer to close @return Exit status of command, or -1 on error