code cleanup FailureApp