TemporaryFile - handle possible unlink() failures better