Add FAILED state. #4047
Merge pull request #4061 from mmascher/filestate

Add FAILED state. #4047