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.