Avoid raising an exception if a tempfile could not opened

This causes an unnecessary crash; the semantics of this procedure
suggest it should swallow exceptions, not create them.

This is #113 in code form.  It's not clear to me *why* this procedure is defined to swallow exceptions rather than close-and-reraise, yet applying this helped me diagnose an issue that had little to do with temp files.