UK: return appropriate error for corrupted files, closes #416
Merge branch '416-corrupted-submission'

* 416-corrupted-submission:
  UK: return appropriate error for corrupted files, closes #416