add TemporaryFile to clean up in case of error

1 job for small-fixes in 2 minutes and 4 seconds (queued for 2 seconds)