Handle missing symlink tempfile 

Only unlink the symlink tempfile on error if it was created in the previous operation.