Currently we don't handle the failure case, however. I think when an application fails there are no guarantees that it may even write the file, so I'm not sure if it makes sense to have an APPLICATION_FAILED file (unlike tasks, applications don't have their own drivers!)