[Release-24] Delete temp file in try/finally