Add deleteOnExit for the temp file where it was missing.