Close and remove the temporary file if vcedit_write() fails.