I think the right approach here is to have certain error conditions when deleting the file - EPERM definitely, but there may be others - flag the file as being failed. That will show it on the status page and also stop retrying the deletes every time. The only potential trouble is that this will effectively resurrect a file that was supposed to have been completed - I'm not sure if that has any ramifications.