Merged from 5.1: Don't die if one tempfile() invocation fails, return an error instead