only delete when the file created was a temp file. Closes fuel/core#1544