YARN-1940. deleteAsUser() terminates early without deleting more files on error. Contributed by Rushabh S Shah