Update XnatUtils.py

Writing a flag text file to say when the job failed. Process Upload will read it